Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

DKNightVersion创建单例有crash风险 #122

Open
fangzhenxing opened this issue Dec 21, 2019 · 0 comments
Open

DKNightVersion创建单例有crash风险 #122

fangzhenxing opened this issue Dec 21, 2019 · 0 comments

Comments

@fangzhenxing
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant