Custom UITabBarItem Image/Title on iPhone

前端 未结 2 1010
情话喂你
情话喂你 2021-02-03 16:26

I\'d like to add a custom title to one of the predefined UITabBarItems. Whenever I select the particular instance I like in Interface Builder -- if I modify the the title it get

相关标签:
2条回答
  • 2021-02-03 16:49

    Unfortunately, the only types of UITabBarItems are those supplied and described entirely by the OS (ie, it assigns them icons and titles), and those described entirely by the app, as you've discovered. By far the simplest solution is to pull the icon out of somewhere else and use it with -initWithTitle:image:tag.

    http://img369.imageshack.us/img369/8388/openbookwp4.png

    0 讨论(0)
  • 2021-02-03 16:57

    As for finding the icons online... I'm still looking for all the official Apple ones myself. Here's what I've found so far:

    • http://glyphish.com/
    • http://www.kombine.net/icon-store/iphone-tab-bar-icons

    And instead of screenscraping, do this:

    • http://www.alexcurylo.com/blog/2009/01/03/extracting-sdk-icons/
    0 讨论(0)
提交回复
热议问题