Change image quality for iPhone 4 users in the iPhone app

I want to display an image for my users that is larger than the screen area and will scroll to allow users to drag and zoom it.

Do I need different images with different dpi for iPhone 4 users due to the higher resolution?

Or can I just set the zoom level differently depending on the device?

+3
source share
1 answer

Yes, you need to use different images. iOS 4 will automatically detect a higher resolution image if you call it a suffix @2x. e.g. image.png => image@2x.png

https://developer.apple.com/iphone/prerelease/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/SupportingResolutionIndependence/SupportingResolutionIndependence.html

(You must be a Registered iPhone Developer to see this document)

+3
source

Source: https://habr.com/ru/post/1759226/


All Articles