I have a tab bar fully worked but how can i push an tab bar item to another view controller?
Code:
- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item {
switch (item.tag) {
case 0:
break;
case 1:
break;
case 2:
break;
case 3:
break;
default:
break;
}
}
Use a UITabBarController. Create it, create your desired custom view controller, and then do:
Then grab access to your window and put the UITabBarController into the window like so: