Artem
Artem

Reputation: 397

Prevent display rotation on iPad

In Xcode in Device orientation section only "Portrait" is selected. On iPhone it works properly, when phone rotated to landscape mode it still works as portrait, so no changing. But on iPad (6th generation) when display is rotated to landscape mode actual screen in my app is also rotated, but without autoscaling. But I don't want that it will be possible to rotate screen on iPad. Do I need to fix it by code or some other settings on Xcode besides "Device Orientation" settings

portrait

Landscape

Upvotes: 1

Views: 1147

Answers (1)

XacWj
XacWj

Reputation: 26

So in the info.plist for your app you just gotta go to "Supported interface orientation (iPad)" open that section up with the disclosure triangle and delete the items you don't want to rotate to for the iPad!

Upvotes: 1

Related Questions