Customize Highlight Image on TabBar

﹥>﹥吖頭↗ 提交于 2019-12-25 05:14:52

问题


I want to replace the normal highlight with an image on tabbar.

What is the simplest way to do this on iOS4 and iOS5??


回答1:


This is super easy in iOS 5 (see the "Customizing Appearance" section of Apple's UITabBar documentation).

If your client is insisting on iOS 4, you'll have to be a bit more creative. Consider subclassing UITabBar or UITabBarController and doing some drawing of your own. Here is an example (and another example and another example which has an answer which points to something called BCTabBarController) you can look at. All great potential solutions for you.



来源:https://stackoverflow.com/questions/10766144/customize-highlight-image-on-tabbar

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