Reputation: 251
i am very new to xcode. i have an app which supports both for iphone and ipad.presently my app supports portrait orientation, now i want to support it for landscape also.
As i goggled it and got an idea that we have to maintain two views for that.is this is the only way to do that? can't i maintain with singleview for landscape and portrait ?
if this is only the way provide me a good tutorial to do this because i have lots of views.
Note: my app should support in ios 4,5,6 also
thankyou
Upvotes: 0
Views: 82
Reputation: 7226
The answer is NO . You need not use 2 Xib's. Please go through the following links :-
Different Xib's for Potrait and Landscape mode for iPad
Also ios 6 offers new methods like shouldAutoRotate etc. You might want to go through them too.
Upvotes: 1