سؤال

I created iphone and ipad app using Xcode 5, iOS 7.

My app contains UIViewControllers and UITableViewControllers. I want to stop landscape orientation in the whole app.

How could I do this?

Thanks in advance.

هل كانت مفيدة؟

المحلول

Check this image, it shows in the bottom where you can specify which interface orientation your target app will have. You just have to select Portrait and upside down.

enter image description here

نصائح أخرى

Click on your projects name, under the "General" tab in the "Deployment Info" section, there's an option called "Device Orientation". Simply check portrait, and uncheck everything else.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top