Embed a view controller in a navigation controller programmatically

suggest change

Swift

//Swift
let viewController = UIViewController()
let navigationController = UINavigationController(rootViewController: viewController)

//Objective-C
UIViewController *viewController = [[UIViewController alloc] init];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:viewController];

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents