These days I'm doing an iOS application with swift. The problem is that I anchored everything with the height and length of the screen, so it comes out different. I would like to have the black bands above and below so, as to return to 16:9.
Asked
Active
Viewed 144 times
-5
-
1deactivate the safe area in your storyboard – thorb65 Apr 26 '18 at 11:39
-
are you sure that it work? – Dennis Bonzanni Apr 26 '18 at 11:41
-
1I wouldn't recommend fixing an application's size to 16:9, this will provide a bad user experience for iPhone X users. – Tamás Sengel Apr 26 '18 at 11:54
-
are you using launch Screen StoryBoard ? – iOS Geek Apr 26 '18 at 11:58
-
IOS Geek how can I see that? – Dennis Bonzanni Apr 26 '18 at 12:09
-
I still can't figure out why do you want that. Instead you should be adopting changes and update your app to support Safe area. Like the4kman said, this is bad user experience. – ZassX Apr 26 '18 at 12:11
-
Can I change the color of the bands? – Dennis Bonzanni Apr 26 '18 at 12:13
-
Have you tried any of the suggestions? Flying blind here. – Martin Muldoon Apr 26 '18 at 12:21
3 Answers
0
Delete your constraints on your view. Then add them back making sure you are pinning the top and bottom to the Safe Area like so (red view for emphasis):

Martin Muldoon
- 3,388
- 4
- 24
- 55
0
a Working solution from my current App
when I dont make use of kaunchScreen.storyboard
As you are having black area in iPhone X Same is here
Solution
Output after solution
Black area is removed
Hope it Helps

iOS Geek
- 4,825
- 1
- 9
- 30
-
do your splash screen Designed in Launch screen Storyboard appears correctly in iPhone X? or that is also created programmatically and you haven't designed Splash using launch SCreen storyBoard – iOS Geek Apr 27 '18 at 04:10