So I've been developing my app, targetting ios8 (mainly because I just didn't have the ios7 emulator downloaded).
Anyway, my app was looking perfect across iphone 4,5,6, and 6+ while running on ios8.
So I decided to download the ios7 emulator and try that out. What I've found is very strange. When running on the iphone5/s and the ios7 emulator, there are black bars across the top and bottom of the screen. It looks like it is running all the iphone4 code instead of the iphone5.
I can't figure out what could be causing this. I don't have a real iphone 5 running ios7 to test it out on, so I can't tell if it's just an emulator fluke.
Any ideas? I just stepped through the code, and this:
CGRectGetHeight(UIScreen.mainScreen().bounds)
is returning 480 for both the iphone 4 and iphone 5, whereas when I run it in ios8, the iphone 5 returns 568.
Anyway, my app was looking perfect across iphone 4,5,6, and 6+ while running on ios8.
So I decided to download the ios7 emulator and try that out. What I've found is very strange. When running on the iphone5/s and the ios7 emulator, there are black bars across the top and bottom of the screen. It looks like it is running all the iphone4 code instead of the iphone5.
I can't figure out what could be causing this. I don't have a real iphone 5 running ios7 to test it out on, so I can't tell if it's just an emulator fluke.
Any ideas? I just stepped through the code, and this:
CGRectGetHeight(UIScreen.mainScreen().bounds)
is returning 480 for both the iphone 4 and iphone 5, whereas when I run it in ios8, the iphone 5 returns 568.
Last edited: