Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.title = @"My View";
- navigationBar.topItem.title = @"My View";
- - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
- if(self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
- self.title = @"My Title";
- }
- return self;
- }
- - (void)applicationDidFinishLaunching:(UIApplication *)application {
- UIViewController *myCustomViewController = [[MyCustomViewController alloc] init];
- navController = [[UINavigationController alloc] initWithRootViewController:myCustomViewController];
- [window addSubview:navController.view];
- [window makeKeyAndVisible];
- }
- - (void)viewDidLoad {
- self.title = @"Hello World!";
- }
Add Comment
Please, Sign In to add comment