Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Nnavick

macrumors regular
Original poster
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:
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.
 
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...
 
The size is too big.. It has a fixed size >.>
If you googled it, you would've seen that the images are around 26x26 to 30x30..
So try that
 
It's working!! yay!!
Thanks!

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