Can I use a diffrent .xib file when the iPad is rotated into landscape mode? if it is possible how would I code that, I’m a bit new to Xcode 😛
Share
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.
If it was rotated before you need to create the view, then by all means, instantiate the view using a different xib file. If the view is already created, you can remove it, instantiate a new one using the landscape xib file, and add it again. This wouldn’t be recommended though. 😛
It is better to layout your view with a xib file that will adjust on rotation/resize, either by setting the automatic adjustment options or by manually repositioning/adjusting the elements inside your view after an orientation change.