objective c - iOS TabbarViewController hide the tab bar when application become active issue -
i able hide tabbar when viewcontroller pushed(load) using following code:
- (bool)hidesbottombarwhenpushed { return yes; }
but when application goes in background , applicationdidbecomeactive, tabbar appears back. have tried
self.tabbarcontroller.tabbar.hidden = yes;
but didn't work. can hide updating frame of tabbar
if([view iskindofclass:[uitabbar class]]) { [view setframe:cgrectmake(view.frame.origin.x, view.frame.origin.y + view.frame.size.height, view.frame.size.width, view.frame.size.height)]; } is best way task , acceptable apple app store?
instead of using methods fuzz around tab bar (there ain't , useful methods available , setting hiden attribut not have affect reason.) can move off screen. old of reference tab bar , set frame in way, origin.x larger screen's (or self.view's) size.width and/or same origin.y , size.height.
Comments
Post a Comment