Problem in to navigate on UITableView on the UIButtonClick which is present in UITabBarController sc

Posted by Rajendra Bhole on Stack Overflow See other posts from Stack Overflow or by Rajendra Bhole
Published on 2010-04-21T14:31:41Z Indexed on 2010/04/21 14:33 UTC
Read the original article Hit count: 153

Filed under:

Hi, I develop an application in which i want to on UIButton Click the application navigate on UITableViewcontroller class.The UIButton is already on UITabBarController during the navigation the tab bar should be visible.The calling method in first tab bar controller class is,

[appDelegate.nvcHome pushViewController:itemMenuTable animated:YES]; [itemMenuTable release]; itemMenuTable = nil;

But it given me the following problem in GDB, Application tried to push a nil view controller on target .

Also i want to display the icon and title of UITabBarController in programmatically, the code is,

homeViewControllerLink = [[homeViewController alloc]initWithNibName:@"homeViewController" bundle:nil];

nvcHome = [[UINavigationController alloc]initWithRootViewController:homeViewControllerLink]; nvcHome.navigationBar.barStyle = UIStatusBarStyleBlackOpaque; UIImage *imgHomeTab = [UIImage imageNamed:@"home"]; [nvcHome.tabBarItem initWithTitle:@"Home" image:imgHomeTab tag:101]; [homeViewControllerLink release];

But it does not display when i running my app on iphone simulator.

© Stack Overflow or respective owner

Related posts about iphone