Eduardo Scoz
Eduardo Scoz

Reputation: 24743

UIView not scaling to iPad retina

I'm updating my app to work with the iPad retina display, but for some reason one of my views doesn't want to scale to 2x. As you can see in the screenshot, the text on the button on the left scales properly, while the text on the right still display the fonts in low resolution. (The gray bg is still low res, but I'm working on that).

I'm adding the ViewControllers as children of the main controller correctly, and the views also follow the same hierarchy.

enter image description here

Thanks!

Upvotes: 0

Views: 2793

Answers (1)

Eduardo Scoz
Eduardo Scoz

Reputation: 24743

I figured out the problem. For some reason the contentScaleFactor is not being set properly in the subview. Setting it manually did the trick:

self.reportsController.view.contentScaleFactor = [UIScreen mainScreen].scale;

Upvotes: 3

Related Questions