xcode - UITabViewController hide / make appear a view in code -
i using xcode 5.1.1. have uitabviewcontroller , used storyboard add 10 views it. works great , "more" , table view free.
i want show of tabs @ beginning. once user logs in google+ account (i got working), want rest of tabs appear, since content sensitive user logging in.
i have found: [[[[self.tabbarcontroller tabbar]items]objectatindex:3]setenabled:false];
but not want items greyed out, want them removed until log in.
get tabbarviewcontrollers , remove them specifying index of need follows:
nsmutablearray *tabbarviewcontrollers = [nsmutablearray arraywitharray:[self.tabbarcontroller viewcontrollers]]; [tabbarviewcontrollers removeobjectatindex: 0 or 1 or 2]; [self.tabbarcontroller setviewcontrollers: tabbarviewcontrollers ];
Comments
Post a Comment