Anyone have this issue? My app works fine when I download it on my device from the App Store, but if I go to run the same branch of my code in the simulator running 10.11 and Xcode 7 Beta I get black bars. I've not had this issue before, and my app is optimized for larger screens. In addition, on a branch where I started implementing Auto Layout, I have the same issue. Even if I remove all my constraints and set to suggested constraints, I have the same issue. Also, I have tried to set the Size Constraints, but that doesn't do anything. What is even more strange, is if I load the app onto my iOS 9 device, I get the same thing. Is anyone else having this issue? Or am I just doing something wrong?
Black bars when using simulator?
I am having the same issue when I run with the iPhone 6 or iPhone 5 simulator, but the screen looks correct when I run with the iPhone 4S simulator. I printed out UIScreen.mainScreen().bounds to see what was going on, and the dimensions were 320.0 X 480.0, regardless of which simulator I used! These dimensions are correct for iPhone 4S, but not the others. My code was working correctly prior to iOS 9 / XCode 7 / OS X 10.11 / Swift 2.0.
Do you have all the required launch images, and are you sure they're of the required size? I didn't have any (new project), but after adding them, the black bars went away.
On a semi-unrelated note, I didn't use auto-layout for this project, but it seems like iOS 9 completely breaks UI for projects not using auto-layout, so I guess it's time to transition.
There is nothing specific about iOS 9 that would break layouts that don't use Auto Layout. Without knowing what specific breakage you have, its hard to say why you may be seeing such issues, except perhaps that your code may have other assumptions that no longer hold on iOS 9.
Starting iOS 9, XCode 7 its mandatory to include the Launch Screen file and inlcude the launch screen key in your info.plist. I also faced the similar issue. (build with XCode 6, iOS 8 worked fine on all device but build with XCode 7 beta, iOS 9 beta resulted in the black bars at top and bottom of the screen on all devices except iPhone 4S) I inluded the Launch Screen.storyboard file, added the corresponding key-value in plist and the bars were gone
Regarding:
Starting iOS 9, XCode 7 its mandatory to include the Launch Screen file and inlcude the launch screen key in your info.plist.
Where did you see that information about being mandatory? I have an app with similar issues but I don't want to include a include a launch screen yet as it would disable upscaling and run the app in the native resolution on iphone 6.
But looks like migrating to an asset catalog for launch images also seemed to fix the issue, although I'd like to avoid using this too.