Reputation: 3527
I am having a trouble with iOS 8. In a certain viewController, when I push another viewController, this last one instantiate correctly, passing in viewDidLoad, viewWillAppear, etc, but when it is presend, it show only a black screen. I am using xcode 6 Beta 6. In iOS 7 SDK is working fine.
The following code is how I am doing:
UIStoryboard *myStoryboard = [UIStoryboard storyboardWithName:@"myStoryboard" bundle:nil];
MyViewController *viewController = (MyViewController *)[myStoryboard instantiateViewControllerWithIdentifier:@"myController"];
[viewController setDelegate:self];
[self.navigationController pushViewController:viewController animated:NO];
Could it be a bug from the new iOS or new SDK? Should I wait Apple fix this issue?
Thank you for attention and helping!
Upvotes: 4
Views: 2136
Reputation: 791
I had similar issues with pushViewController as well when running my app on iOS8 (while it was compiled in Xcode5).
It happened while I pushed a view controller (not animated) while my navigation controller was being transitioned. Pushing the view controller in the init
method instead of the viewDidLoad
solved the issue.
Upvotes: 1