开发者

How To Replace UITabBar With UIToolBar?

开发者 https://www.devze.com 2023-02-28 05:43 出处:网络
I have a Tab Based App.When I am in a UIWebView, I want the TabBar to hide and be replaced with a 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

精彩评论

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