Custom UITabBarItem Image/Title on iPhone

前端 未结 2 1005
情话喂你
情话喂你 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

提交回复
热议问题