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

angularjs - Redirect to a new template in angular js -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

Desktop Launcher for Python Script Starts Program in Wrong Path (Linux) -