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

iOS

Xcode: running app on my iPhone 5s makes it look like a 4S (3.5inch) iPhone

Hi all,

I have a strange situation with Xcode (v6.0.1). When I create a empty single view application and set the deployment target to 7.1, running the app on my actual iPhone 5S makes the app use the 3.5 inch size. So it looks like Xcode sees my iPhone as a 4S.

I noticed this the first time after finishing the Weather app project in SWIFT. With this app I had the same problem. To be sure it was not a mistake during this project I tried it with a completely new and empty project.

I have no idea why this is. When viewing the app on a 5S simulator it is just fine.

Any suggestions? Also if you need more info, just let me know.

Thanks

Hi Sjors,

One possibility for iOS 7 deployments you need to set a launch image for 4" screens, otherwise it defaults to the 3.5". In iOS 8.0+ Xcode simplifies this with a LaunchScreen.xib file with size classes for all screens. Try that and see what happens.

In the Image asset catalog, click the + button and choose add Launch Image. Depending on your version of Xcode it will list various launch images. R4 is the one that probably isn't set.

Again, if you're using iOS 8 then you don't really have to worry about it if your'e using the LaunchScreen.xib file with size classes.

Hope this helps and solves your problem.

Jake