Go to the project settings General > Deployment Info and make sure you have checked "Requires full screen" setting.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: