How to Control the Status Bar in iOS Simulator
Need to quickly change the iOS Simulator’s status bar for screenshots or testing? You can do it with the simctl command-line tool. Here’s a quick look. The Basic Command The core command to manipulate the status bar is: xcrun simctl status_bar <device> override <options> <device>: Use booted for the currently running simulator, or a specific simulator UDID (get a list with xcrun simctl list devices). <options>: These are key-value pairs for what you want to change. Common Status Bar Overrides Here are some of the most common things you’ll want to do: ...