How could I create a custom tabbar similar to this

删除回忆录丶 提交于 2019-12-03 13:40:43

问题


How could I create this custom tabbar and what does it consist of?


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/6480258/how-could-i-create-a-custom-tabbar-similar-to-this

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!