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

super.viewDidLoad() 不加括号会崩溃 #18

Closed
zhaoxuezhi opened this issue May 31, 2019 · 2 comments
Closed

super.viewDidLoad() 不加括号会崩溃 #18

zhaoxuezhi opened this issue May 31, 2019 · 2 comments

Comments

@zhaoxuezhi
Copy link

@YPLiang19 看文档里有写 OC 无参方法的调用可以省略后面的括号,但是super.viewDidLoad这种写法会崩溃,貌似死循环:

class SuperMyController:UIViewController{

  • (void)viewDidLoad {
    super.viewDidLoad;
    }

image

image

@YPLiang19
Copy link
Owner

@zhaoxuezhi 对于super还不行,必须要加上();

@YPLiang19
Copy link
Owner

@zhaoxuezhi 最新版本已经解决了这个问题,可以试试~

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