开发者

App stalls - no crash, no error

开发者 https://www.devze.com 2023-01-17 03:04 出处:网络
It is worth noting that this part of the app (this option from the main menu) was working perfectly before. I then programmed the next option from the main menu, and now this one is not working anymor

It is worth noting that this part of the app (this option from the main menu) was working perfectly before. I then programmed the next option from the main menu, and now this one is not working anymore.

I know开发者_JS百科 the code I've written works, but there is something wrong with either the class or the xib, because it worked when I switched it to call a different class/xib from:

UIViewController *nextController = [[OneMethodController alloc] initWithNibName:@"OneMethodController" bundle:nil];

to:

UIViewController *nextController = [[SecondMethodController alloc] initWithNibName:@"SecondMethodController" bundle:nil];

When I try to load the first class/xib (which used to work, as I said), the app just stalls indefinitely. There is no error and the app does not crash.

Any ideas? THANKS!!


Note that *nextController should most likely be initialized as

SecondMethodController *nextController = [[SecondMethodController alloc] init . . .

And not as

UIViewController *nextController = [[SecondMethodController alloc] init . . .


The issue was not with the XIB but with the viewDidLoad of that XIB's class. Thanks @cool_me5000 for your help with this.

0

精彩评论

暂无评论...
验证码 换一张
取 消