Creating a Universal iOS App Tutorial
- Compiled for 3.2 and 4.0
- Utilizes navigation controller based app for iPhone device and SplitViewController for iPad
- Shared "model" class and controller classes
- Separate resources (classes/xibs) for the different devices
22 responses
I just want to know why should we make it like share and create different files for iphone and ipad.
For example i have sign up page and in that i have one function in which i have little bit different code based on ipad and iphone.
So think like i have around 100 lines of code in that function and i want to change only 2 line based on iphone and ipad device.
So in that case shouldn't we go with conditional code instead of write duplicate code in 2 different files?
Sent from my iPad
great resource.
One quick question: Where do you determine if its iPhone or iPad?
I especially like the beauty of subclassing the view controllers. Very well done!
You have my vote to go independent iOS pro! Don't go be a slave for another corporation! Let me know if you need some small side projects to work on... I'm sure there are others like me who have lots of app ideas but not enough time to work on them all.
for universal apps , how should be the images, do i need to include , image for iphone, iphone-retina , ipad and ipad retina ??
Sent from my iPhone
Very nice succinct example.
Thank you!!!