开发者

Showing a hidden UITabBArController

I am hiding the UITabBar controller using the code below.

self.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:details animated:YES];

This is working f开发者_如何学JAVAine.But when I return back how can I show the bar which is already hidden? Thanks


Add a delegate property to the details viewController with a method that you call before leaving the details view and unhide the bottom bar in there?


Instead of the code I provided above I used this

details.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:details animated:YES];

ie replaced self with details.

THanks all.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜