Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Renato Nobre
5,805 PointsDifferent Views for Ipad and Iphone in same App
So I was wondering, how can I do a App that show different view layout for an Ipad and a Iphone/Ipod? Also, is there any tutorial that teach how to use the others Xcode interfaces, like Tab or Page-Based application?
1 Answer
Marshall Huss
3,504 PointsThere's a few ways to accomplish this. The current preferred method is to use the new size classes and build your UI based on those. If you handle all the cases your UI will work on all devices. Interface Builder in Xcode 6 has support for this built in.
Another solution is to make a xib for both iPhone and iPad. You can check the device idiom and then manually load the xib. Alternatively if you want to use the same ViewController just append ~ipad.xib to your iPad xib and it will be loaded automatically on iPads.