Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
- {
- RootViewController * rootViewController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil];
- UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:rootViewController];
- UIBarButtonItem *next = [[UIBarButtonItem alloc] initWithTitle:@"Next" style:UIBarButtonItemStyleDone target:nil action:nil];
- navigationController.title = @"Foo";
- navigationController.navigationItem.rightBarButtonItem = next;
- [self.window addSubview:navigationController.view];
- // Override point for customization after application launch.
- [self.window makeKeyAndVisible];
- return YES;
- }
- navigationController.navigationItem.rightBarButtonItem = next;
- rootViewController.navigationItem.rightBarButtonItem = next;
Add Comment
Please, Sign In to add comment