Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- navBar.topItem.title = @"title";
- self.navigationItem.title = @"the title";
- CGRect navBarFrame = CGRectMake(0, 0, self.tableView.frame.size.width, 44.0);
- UINavigationBar *navBar = [[UINavigationBar alloc] initWithFrame:navBarFrame];
- UINavigationItem *navItem = [UINavigationItem alloc];
- navItem.title = @"Your Title";
- [navBar pushNavigationItem:navItem animated:false];
- [self.view addSubView:navBar];
- self.tableView.tableHeaderView = navBar; etc
- [self setTitle:@"My Title"];
- self.navigationItem.title=@"Hello World";
- navigationBar.topItem.title = @"Title";
- self.navigationController.navigationBar.topItem.title = @"Title";
- _title = @"Title";
- self.title = @"Title";
- self.navigationItem.title = @"Your title";
- override func viewDidLoad() {
- super.viewDidLoad()
- navigationItem.title = "Title"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement