开发者

How could I create a custom tabbar similar to this

开发者 https://www.devze.com 2023-03-15 15:41 出处:网络
How coul开发者_如何转开发d I create this custom tabbar and what does it consist of? On cocoacontrols.com you can find several TabBar implementations similar to this.iOS 5 now allows to change the bac

How coul开发者_如何转开发d I create this custom tabbar and what does it consist of?

How could I create a custom tabbar similar to this


On cocoacontrols.com you can find several TabBar implementations similar to this.


iOS 5 now allows to change the background image of the tabbar but this kind of custom control is much more complex. You would basically need to write your own view and controller that would change between views, move the arrow accordingly and activate/deactivate the buttons.

As of the elements it consists of, i would say

  • One background image used for every element
  • The different icons in normal and selected state
  • A UILabel for every element
  • The blue divider
  • The arrow, separate from the divider to simplify the animations...

To see how a tabbar with an indicator could be coded check out this project on GitHub for a Twitter-like tabbar.

0

精彩评论

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

关注公众号