How would I create device specific xibs? I made one for iPhone that is universal, but how can I use separate xib files?
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.
From the Apple Resource Programming Guide:
In the “iOS Supports Device-Specific Resources” document, it says this:
So if you wanted separate .xib files, you would include the iPad xib called “MyView-ipad.xib” and the iPhone xib called “MyView-iphone.xib”.
Once you have these files included in your project, when you call this:
Depending on which device your application is running on, the correct xib file will be loaded.
Hope this helps!