开发者

UITabBar - iPhone

Is there any way how I can create a UITabBar with options such as Home, Search and Login and display these on all the pages including those without a UITabBarItem? For instance, on my Shopping Cart view I will have开发者_运维百科 the UITabBar (with Home, Search and Login) but without a UITabBarItem for the Shopping Cart?

Is this possible?

Thanks in advance!


You can simulate an UITabBar using custom UIButtons.

I'm using this technique in an app I'm developing at the moment because I want certain effects (like fading) when switching between different views.


UITabBar (you should carefully read the doc) extends UIView.

So :

  • You can put it wherever you want (addSubview method)
  • You can change items in run time with

-(void)setItems:(NSArray *)items animated:(BOOL)animated

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜