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