iOS Dev Nugget 312 Fix Distorted Launch Screens with Hotspot Bar


Need to run a code review on your codebase? Hire me

Do you notice that if the call-in-progress or personal hotspot indicator bar is shown when you launch an app on a iPhone without a notch (i.e. iPhone 8, 8 Plus and earlier as of writing), the launch screen tends to be distorted? I've found that an easy fix is just to disable the status bar at launch with this in your Info.plist:


Then enable it immediately in your app delegate:

application.isStatusBarHidden = false

Let me know if you know of any other trick to do this.

Your feedback is valuable: Do you want more nuggets like this?   Yes   or   No



Like this and want such iOS dev nuggets to be emailed to you, weekly?

Sign Me Up! or follow @iosdevnuggets on Twitter


View archives of past issues