iOS TabBar item selection

Nnavick

macrumors regular
Original poster
Oct 13, 2010
100
0
Hi,


using this property I changed the UITabBar selection image


PHP:
 bar.selectionIndicatorImage=[UIImage imageNamed:@"tabbar-active@2x.png"];
But the image is bigger then the bar item
How do I resize the image while the property gets UIImage?

and one more question.
I added programmatically two UIButtons to the UITabBar.
the second one is behind by the selectionIndicatorImage but the first In front of the new selection.
I created them both after the code above so the layers are ok.
What is the problem?


Thanks!!!
 
Last edited:

Nnavick

macrumors regular
Original poster
Oct 13, 2010
100
0
You assign a retina sized image to it, you need to assign a normal image because you're app wil automatically load in the @2x image when it finds a retina display.
I changed it and nothing happens...
 
Comment

Nnavick

macrumors regular
Original poster
Oct 13, 2010
100
0
It's working!! yay!!
Thanks!

What about my second question,do you know what is the problem?
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.