Correct way to add "Tab Bar" in Navigation based tamplate in iPhon
Posted
by iPhoneDev
on Stack Overflow
See other posts from Stack Overflow
or by iPhoneDev
Published on 2010-05-28T07:56:49Z
Indexed on
2010/05/28
8:02 UTC
Read the original article
Hit count: 248
iphone
I have added Tab Bar in Navigation based tamplate like this:
[self.navigationController pushViewController:anotherViewController animated:YES];
And I think this is not the correct way to have Tab Bar in detail view in Navigation based tamplate.
Please make me correct?
UnsentView *unsent = [[UnsentView alloc] initWithNibName:@"UnsentView" bundle:nil];
unsent.title =@"Unsent";
UITabBarController *anotherViewController = [[UITabBarController alloc] init];
anotherViewController.viewControllers = [NSArray arrayWithObjects: unsent, setting, nil];
[self.navigationController pushViewController:anotherViewController animated:YES];
[anotherViewController release];
© Stack Overflow or respective owner