UITabViewController hide / make appear a view in code
Posted
by
user3689827
on Stack Overflow
See other posts from Stack Overflow
or by user3689827
Published on 2014-05-30T03:22:56Z
Indexed on
2014/05/30
3:24 UTC
Read the original article
Hit count: 239
I am using Xcode 5.1.1. I have a UITabViewController and used Storyboard to add 10 views to it. It works great and I get the "more" and table view all for free.
I only want to show some of the tabs at the beginning. Once the user logs in with their Google+ account (I actually got that working), then I want the rest of the tabs to appear, since they are content sensitive to the user logging in.
I have found: [[[[self.tabBarController tabBar]items]objectAtIndex:3]setEnabled:FALSE];
But I do not want the items just greyed out, I want them removed completely until they log in. Thanks
© Stack Overflow or respective owner