I have a Xib for iPhone and I need a similar view for iPad, only iPad size.
What is the best way of doing this? Can you put both views in the same Xib and somehow specify which one is shown?
Or do I need to be make 2 Xib files and 2 classes?
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.
I ended up using 1 class. I set the file owner of both XIB files to this same class.
I just used the name of the XIB file
So I have 2 xibFiles, iPadXib.xib and iPhoneXib.xib