开发者

Hide TabBar and display UIToolbar

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜