开发者

How To Replace UITabBar With UIToolBar?

I have a Tab Based App. When I am in a UIWebView, I want the TabBar to hide and be replaced with a UIToolBar.

Right now I utilize the following:

-(void)viewWillAppear:(BOOL)animated
{
    [self.tabBarController.tabBar setHidden:YES]; 
    self.navigationController.toolbarHidden = NO;
}

Wha开发者_StackOverflowt this results in is the TabBar hiding the space it took is just blank white, and the toolbar is displayed above this blank white space. How can I fix this?

How To Replace UITabBar With UIToolBar?


Set appropriate frame of the toolbar and then add in the main window in the application in viewDidAppear mathod

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜