DKNightVersion icon indicating copy to clipboard operation
DKNightVersion copied to clipboard

DKNightVersion创建单例有crash风险

Open fangzhenxing opened this issue 5 years ago • 0 comments

instance.themeVersion = themeVersion;这句代码使用了setter方法,在setter方法中发送通知修改主题,而如果某控制器中在自定义方式获取单例self.dk_manage就与该方法冲突造成了循环锁错误。本人认为解决办法应该是改成instance->_themeVersion = themeVersion.

fangzhenxing avatar Dec 21 '19 05:12 fangzhenxing