问题
When I am running the project in iPhone X is getting black space above navigation bar as shown, not getting the color as same.

How to solve this?
回答1:
I suppose you are not using storyboard for launch screen.
There are two options to fix this.
- Use storyboard as LaunchScreen.
- If you are using Launch Image Source for launch screen add launch screen image for iPhoneX.
来源:https://stackoverflow.com/questions/46909424/navigation-bar-issue-in-iphone-x