In xcode, select your project. Go to "Goals" → "General", scroll down, and you can choose the orientation only as a portrait.
You can also make changes to the info.plist file to select the correct orientations for the supported interface orientations (iPad).
source
share