How should one proceed if he has to develop the same app on iPhone and iPad? Should all View files be separate with same controller and Model 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.
You separate things where you need to. If everything in your iPad views match up with items in your iPhone views, you can (typically) reuse much (if not all) of the view controller.
I have found myself, more often than not, creating a subclass for the common idioms, and then extending that for iphone/ipad based on their differences. It’s not a fabulous solution, but it works.