Gopinath Manickam
Gopinath Manickam

Reputation: 247

Why my iPhone 6 screen resolution get differs?

In my app, I have a condition to display a UIView in my view controllers if that view appears on the screen the iPhone 6 have the iPhone 5 resolution if that same view isn't appears there is no issue. I've calculated the screen resolution via code and test the above scenario. I think that Auto layout will change the screen resolution. Please help me to fix it. Also please share factors that changed the screen resolution.

Upvotes: 1

Views: 67

Answers (1)

Dayanithi Natarajan
Dayanithi Natarajan

Reputation: 843

Select your View Controller, go to Attributes Inspector of the Utility Area and please ensure that you chose Inferred in Size

enter image description here

Enabling AutoLayout alone will not change your view's size. You should add constraints to it.
Once you are done, You need to set constraints for your view.
enter image description here

Upvotes: 1

Related Questions