0

I have a tabbar application created using Interface builder. When I try to set Custom

Image for tabBar Item does not show up.

Can Anyone Please help me in this?

Thanks in Advance

Parth Bhatt
  • 19,381
  • 28
  • 133
  • 216
Lakshmi
  • 585
  • 2
  • 13
  • 22

3 Answers3

0

you could programmatically set the image with the following line of code

UITabBarItem* theItem = [[UITabBarItem alloc] initWithTitle:@"Home" image:anImage tag:0];
FierceMonkey
  • 1,964
  • 1
  • 16
  • 22
0

Alterative:

You can drag and drop a image into your resourses folder and then in interface builder goto the TabBar items attributes change the image to the image to dropped into the resourses folder.

Michael Smith
  • 498
  • 2
  • 5
  • 15
0

see this link you will see the demo for making tab bar application in this where you select the tab for give name at that options you can see IMAGE option so you can specify your tab image their.. Here

Kartik
  • 779
  • 7
  • 22