Set Landscape Orientation for iPad Only NOT iPhone

I have an iPhone Storyboard and iPad Storyboard in my xCode project. In my iPhone version, I only want portrait mode to work (which is already there).

Now, I have added a storyboard for iPad, but iPad is working only with Portrait mode. However, I want the iPad to work in Portrait and Landscape and the iPhone to remain as portrait only

Please advise.


2 Solutions
Solution

Select your project -> Target -> Deployement info -> iPhone.
and checkmark as follow:

for iPhone:

for iPhone

And for iPad:

for iPad

Solution

Select your Project from document directory.
Go to Targets->General->Deployment Info
Here you will have iPhone and iPad options with relevant orientation info.
Checkmark the orientations you want, specific to device.