iphone - How to create iOS image buttons that scale well across multiple resolutions? -


I have run on the issue of using UIBarButtonItem with a custom color 'out of the net Everything indicates that the only way around this lack of official API support revolves around the use of images. While creating an image for iPhone and iOS 4 devices, this is easy, but the images developed for those devices look absolutely dangerous on the iPhone. 4. I suspect that this problem will be further enhanced with the introduction of next-generation equipment.

Take a look at the example below. Notice how the default color button is nice and smooth, but the iPhone 3GS image looks terrible. It does not seem to be very scalable to include many images for different resolution devices. = "Alt text">

In the absence of an official API to change the color of a UIBarButtonItem , what are the strategies for creating images that are different resolution devices? This problem is rarely unique to UIBarButtonItems, how are communities favorable to other UI elements, which are bitmaps?

If possible, provide a solid code example.

Also the image can be listed as image 02.png as well as the system will select the appropriate image in order.


Comments