开发者

Hide TabBar and display UIToolbar

开发者 https://www.devze.com 2023-03-27 11:06 出处:网络
At the startup of my iPhone application if the user isn\'t logged in I want to hide the tabbar and d开发者_开发技巧isplay a toolbar at the bottom with only two centered buttons (signup and login).

At the startup of my iPhone application if the user isn't logged in I want to hide the tabbar and d开发者_开发技巧isplay a toolbar at the bottom with only two centered buttons (signup and login).

How can I do this?


You can hide the tabBar with

self.tabBarController.tabBar.hidden = YES;

Then you can hide/unhide the toolbar

toolBar.hidden = NO;

Toggle these again once the login is successful.

0

精彩评论

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