SETTING CUSTOM IMAGE/TITLE ON UITABBARITEM ON IOS

Andrew Watson

Total Post:39

Points:273
Posted by  Andrew Watson
 473  View(s)
Ratings:
Rate this:

I want to add custom title on predefined UITabBarItems. Whenever I select the particular instance I like in Interface Builder, if I modify the title it gets preset back to a 'custom' identifier. Ideally I would like the book icon from the 'Bookmarks' identifier on my own custom title.
Is this level of customization currently supported by the SDK? Am I going to have to ultimately screen scrape the image and apply it as a custom image?
You can provide me the documentation also which will points me on the right direction.

  1. Tarun Kumar

    Post:214

    Points:1642
    Re: Setting custom Image/Title on UITabBarItem on iOS

    In my according the only types of UITabBarItems are those supplied and described entirely by the OS, and those described entirely by the app, as I discovered. By far the simplest solution is to pull the icon out of somewhere else and use it like this:

    -initWithTitle:image:tag

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!