ios - Swift - Allow Rotation on iPad Only -


how allow universal app written in swift on ios 8.3 sdk support portrait mode on iphone, both portrait , landscape mode on ipad?

i know in past has been done in appdelegate. how in swift?

you can programmatically, or better yet, can edit project's info.plist (which should more practical, since it's global device configuration)

just add "supported interface orientations (ipad)" key

enter image description here


Comments

Popular posts from this blog

methods - python can't use function in submodule -

Java 3D LWJGL collision -

c# - ErrorThe type or namespace name 'AxWMPLib' could not be found (are you missing a using directive or an assembly reference?) -