Home > DeveloperSection > Forums > Custom UITabBarItem ImageTitle on iPhone
Felix Pickles
Felix Pickles

Total Post:24

Points:168
Posted on    September-28-2015 1:19 AM

 iPhone iPhone  Ios  Objective C 
Ratings:


 1 Reply(s)
 499  View(s)
Rate this:

I have created a UITabBarItems and now I want to add a custom title on it. I like the Interface Builder whenever I select the particular instance. If I modify the the title it gets preset back to a 'custom' identifier. Ideally I'd like the book icon from the 'Bookmarks' identifier with 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?

Thanks for any insight or documentation which points me in the right direction.



Tarun Kumar

Total Post:213

Points:1635
Supported
Posted on    September-29-2015 12:51 AM

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

Don't want to miss updates? Please click the below button!

Follow MindStick