Really cool way to create custom UITabBar for iPhone app?

前端 未结 3 1385
独厮守ぢ
独厮守ぢ 2020-11-29 23:30

I am doing a lot of researching lately about how to get a different looking with nice effects UITabBar on my iPhone app, but unfortunately I am only finding thi

相关标签:
3条回答
  • 2020-11-29 23:52

    There's a project on github called BCTabBarController that aims to mimic the tab bar used in Twitter for iPhone. It's got some of the things you're looking for, and should give a great starting point.

    0 讨论(0)
  • 2020-11-30 00:02

    Simply use a UIView with TabBar width and height.Add custom background image and custom buttons on the view.Set the fileowner of the view as AppDelegate.Now you can simply connect the IBActions with the buttons.The Custom view can be placed over the tabbar by addSubView to the TabBar controller's view.You can switch between viewcontrollers by using the setSelectedIndex method of tableviewcontroller in the button action.

    0 讨论(0)
  • 2020-11-30 00:05

    Both of these are good answers, but both libraries have problems: BCTabBarController doesn't know how to create the "blue" highlighted version of a tab bar icon; and iDevRecipies doesn't send events to child viewcontrollers nor resize the navigation bar on rotate.

    Be warned: custom nav bars are a lot of trial-and-error debugging (as I have found).

    0 讨论(0)
提交回复
热议问题