Guest User

Untitled

a guest
Apr 24th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. self.title = @"My View";
  2.  
  3. navigationBar.topItem.title = @"My View";
  4.  
  5. - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
  6. if(self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
  7. self.title = @"My Title";
  8. }
  9. return self;
  10. }
  11.  
  12. - (void)applicationDidFinishLaunching:(UIApplication *)application {
  13. UIViewController *myCustomViewController = [[MyCustomViewController alloc] init];
  14. navController = [[UINavigationController alloc] initWithRootViewController:myCustomViewController];
  15. [window addSubview:navController.view];
  16. [window makeKeyAndVisible];
  17. }
  18.  
  19. - (void)viewDidLoad {
  20. self.title = @"Hello World!";
  21. }
Add Comment
Please, Sign In to add comment