I want to add a tab Bar Controller to my current App Flow. Currently I have a page with a button which on clicking opens a new viewcontroller with a web view where the user logs
Set Delegate UITabBarDelegate
here TabBar Viewcontroller image http://prntscr.com/ba5oks
#pragma mark- Tapbar delegate
- (void)deselectTabBarItem:(UITabBar*)tabBar
{
tabBar.selectedItem = nil;
}
- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item
{
[self performSelector:@selector(deselectTabBarItem:) withObject:tabBar afterDelay:0.2];
switch (item.tag) {
case 0:
//perform action
break;
case 1:
//do whatever you want to do.
break;
case 2:
//call method
break;
default:
break;
}
}