Pushing a view controller onto the navigation stack
suggest change//Swift
let fooViewController = UIViewController()
navigationController?.pushViewController(fooViewController, animated: true)
//Objective-C
UIViewController *fooViewController = [[UIViewController alloc] init];
[navigationController pushViewController:fooViewController animated:YES];
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents