i cannot set the title for my navigationBar

Posted by Brionac on Stack Overflow See other posts from Stack Overflow or by Brionac
Published on 2010-06-02T01:44:55Z Indexed on 2010/06/02 1:53 UTC
Read the original article Hit count: 294

Filed under:

here's my problem. i couldn't set the name for my navigationBar.. below are some i have tried but to no avail.

  • (void)viewDidLload { [super viewDidLoad];

    self.title = @"Food";

}

  • (void)viewDidLload { [super viewDidLoad];

    [self.setTitle:@"Food"];

}

  • (void)viewDidLload { [super viewDidLoad];

    MyTableViewController *myTableViewController = [[MyTableViewController alloc] init]; myTableViewController = @"Food";

}

any kind soul?

© Stack Overflow or respective owner

Related posts about xcode