If you use system icons, they come with the titles. You can't use just the icons (without titles), unless you use a tool like iOS Artwork Extractor to actually extract the images from iOS and add them to your project.
Change Titles of Default Apple UITabBarItems
-
26-06-2022 - |
Frage
Hello I am making a sports app and I have three UITabBarItem
s in a tab bar: Featured, My Teams and Results. I like the default icons for each as the default featured, most viewed and history respectively.
What it looks like in the .xib:
However when I try to change the titles in the UIViewController they do not change.
UIViewController code (I do not need to change the title of featured):
[_teamsItem setTitle:@"Teams"];
[_resultsItem setTitle:@"Results"];
How can I change the titles, or how can I use the icons from those default UITabBarItems to create my own? Thanks in advance.
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow