salyutan
salyutan

Reputation: 203

iPhone 4, High-Resolution Screen Support

It became High-Resolution Screen Support from iOS4.

I make the custom button with UIButton. It is prolonged in 640x960 and it is displayed. With this, it is not significant.

Isn't there method that makes 640x960 a standard and displays?

Upvotes: 0

Views: 3218

Answers (4)

user334081
user334081

Reputation: 26

@2x naming :

This will holds good for images in application bundle, How abou the image that i am downloading from server?

I am downloading the image as NSData and initialize the UIImage with the data. I found the image is blurred in iPhone 4 Simulator.

Can the naming convention in image url will do the stuff ?

Upvotes: 1

salyutan
salyutan

Reputation: 203

I make XIB file. The resolution of XIB is not revokable in 320x480. The resolution wants to make me XIB of 640x960 for iPhone4.

Upvotes: 0

Thomas Müller
Thomas Müller

Reputation: 15625

I guess you're asking how to provide higher resolution images?

Use the same name, but append "@2x" to it. Then load it with UIImage's -imageNamed: method to automatically load the correct version.

If your standard resolution image is 20x20 and is called Button.png, create a 40x40 image and call it [email protected]

Upvotes: 0

Related Questions