Problem in to navigate on UITableView on the UIButtonClick which is present in UITabBarController sc
- by Rajendra Bhole
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.