I have one view controller set with one graph view and segmented control inside it. How to make the view rotate to horizontal? Also, is it possible to load another view for horizontal orientation?
Thx in advance,
Mladen
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You implement orientation support through:
Then to load a new ViewController when rotating:
You could even set up an animation to manipulate the alpha property of the new view, if you wanted to do a smooth transition, like you see in the iPod app when it transitions to CoverFlow mode.
DISCLAIMER
The preferred method of supporting interface rotation changes in 3.0. The above method will still work, but there is a way to get smoother animation. But we’re not supposed to talk about that here for one. more. week.
ANOTHERvDISCLAIMER
The preferred method of supporting interface rotation changes again in 6.0. The above method will still work, but there is a way to get smoother animation.