I'm new to iOS coming from Android. I try to run simulator and open the Control Center on it. When I swipe from the bottom to up I see that it's empty. Any ideas what's going on with my simulator?
I tried at iPhoneX simulator and have the same.
Just press ⌘K it will toggle keyboard.
Open up a project in Xcode and click on the device near the Run ▶ button at the top left of your Xcode screen. Plug your iPhone into your computer. You can select your device from the top of the list. Unlock your device and (⌘R) run the application.
Unfortunately the Simulator does not show a true Control Center. Yes, a blank screen appears, but no controls are available in there. Welcome to iOS ;]
I needed to do this specifically to do a screen recording, but I realised you can't do it that way. So I found out about this way https://medium.com/@skounis/take-a-screenshot-or-record-video-with-ios-simulator-90c196e03b67 for anyone looking to do the same.
xcrun simctl io booted recordVideo <filename>.<extension>
To stop recording, press Control-C in Terminal.
PS - for iPhone X emulator you need to swipe from the top right down (even though that doesn't get you what you want)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With