LIJI
LIJI

Reputation: 141

Use iPhone 6/6s/7 Plus' Native Resolution

I'm creating an app that uses pixel-art style graphics, and I'd like to avoid the "Plus-class" iPhones' downscaling from 1242x2208 to 1080x1920 in order to avoid resampling artifacts. I know iOS bypasses the scaling when it plays full screen video. Private APIs are fine (not targeting the App Store) and I'm using OpenGL with GLKView to render, if that's relevant.

Upvotes: 0

Views: 124

Answers (1)

Noah Witherspoon
Noah Witherspoon

Reputation: 57149

glkView.contentScaleFactor = UIScreen.main.nativeScale

See the answers to this question for more information.

Upvotes: 1

Related Questions