Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jz_viewDidLoad方法中self.delegate = nil会导致一系列问题,如系统相册 #92

Open
tbl00c opened this issue Dec 14, 2017 · 1 comment

Comments

@tbl00c
Copy link

tbl00c commented Dec 14, 2017

JZ目前设计中,在viewDidLoad前设置的navigationController的delegate是不被允许的,没有理解这样做的初衷,但是这样会使编码受限,也会导致一些系统控件出错。
建议改为
self.delegate = self.delegate;
可解决此问题。

@semnyqu
Copy link

semnyqu commented Sep 10, 2018

我也没搞懂这个self.delegate = nil;这个的设计初衷
感觉这里影响很大,特别是使用系统相册的时候,无法正常使用;会导致两个问题:
1.崩溃
NSAssert(!self.delegate, @"Set delegate should be invoked when viewDidLoad");
2.无法正常获取到图片,准确说是delegate无效
self.delegate = nil;
这句话导致的,希望作者考虑下这句话的用途,斟酌下看看有无其他调整;

暂时未了不影响其他调用,只能放弃这个第三方库了

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

No branches or pull requests

2 participants