0

I don't know how to make it run full screen, I've already turned on Use Auto Layout and Use Size Classes, but didn't work.

enter image description here

But when I build, the simulator look like this:

enter image description here

The top part and the bottom part are black. Any help would be appreciated.

Updated: Follow the solution in this link in comment, but doesn't work:

enter image description here

enter image description here

enter image description here

Twitter khuong291
  • 11,328
  • 15
  • 80
  • 116

3 Answers3

1

Here is what you need to do

1) As you did't added images in the Launch Image Assets your view is not showing property 2)At first you need to rename images in following format

Default-568h@2x~iphone.png - 2x for 5s,5

Default@2x~iphone.png - 2x for 6

Default@3x~iphone.png -3x for 6+

2) Now just drag and drop your images for the specific resolutions you want to support and set the created LaunchImage asset as your source.enter image description here

3)Add launch Image documentation

Rohit Pradhan
  • 3,867
  • 1
  • 21
  • 29
0

First you delete the Images.xcassets -> LaunchImage. Than create a new LaunchImage Taget -> General -> App Icon and Launch Images choose Launch Images Source Hope this helps.

Kamlesh Shingarakhiya
  • 2,757
  • 2
  • 16
  • 34
-1

You can do one thing, Stop ur simulator, then restart it and then when your simulator is running go to hardware on the menu and try to scale down to 50% or either 33%. this should work If not select your view controller then go to the Attributes inspector and then go to size and select 4.7 inch and then try to run it again.

All the best