Home > DeveloperSection > Forums > Setting custom Image/Title on UITabBarItem on iOS
Andrew Watson
Andrew Watson

Total Post:39

Points:273
Posted on    December-15-2015 11:38 PM

 iPhone iPhone  Ios  Objective C 
Ratings:


 1 Reply(s)
 257  View(s)
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.



Tarun Kumar

Total Post:213

Points:1635
Posted on    December-16-2015 10:43 PM

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

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

Follow MindStick