How To Create A Custom Center Tab Button?

夙愿已清 提交于 2019-12-10 23:54:25

问题


I'm trying to follow this tutorial here to recreate a custom center tab button, but I already have my tabbarcontroller setup in IB. Can anyone help me do this? The tutorial does it all through code so its difficult to follow.

http://idevrecipes.com/2010/12/16/raised-center-tab-bar-button/


回答1:


All they're doing is creating a blank UITabBarItem, no image or name, simply a placeholder. They then put a UIButton with a custom image (i.e. the green camera button) on top of the UITabBar. Just go into interface builder and add a new TabBarItem and put a UIButton on top of it.



来源:https://stackoverflow.com/questions/6809970/how-to-create-a-custom-center-tab-button

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