Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to check shake effect in iPhone simulator?

Tags:

iphone

I am using Xcode.

I have implemented the shake code. Now I want to check whether that code works or not.

How do I shake iPhone simulator??

like image 377
Sagar Kothari Avatar asked Aug 19 '09 18:08

Sagar Kothari


People also ask

How do you inspect Iphone simulator?

You'll need to go to Settings > Advanced and check the Show Debug Menu option. Then you'll see the option to open the web inspector for the Simulator right from that menu. With the Web Inspector open, you can debug inside the Simulator just like you could right in a desktop browser with DevTools.

How do you shake device in Simulation?

iOS Simulator: Hit Ctrl + Cmd ⌘ + Z on a Mac in the emulator to simulate the shake gesture, or press Cmd ⌘ + D . Android Device: Shake the device vertically a little bit. Android Emulator: Either hit Cmd ⌘ + M or Ctrl + M or run adb shell input keyevent 82 in your terminal window.

How do I use iphone simulator?

To launch a Simulator without running an appChoose Xcode > Open Developer Tool > Simulator. Control-click the Xcode icon in the Dock, and from the shortcut menu, choose Open Developer Tool > Simulator.

Is there a Iphone simulator?

iOS Simulator vs Physical iOS Devices for App TestingThe Apple iOS Simulator, which ships as part of Xcode, is a tool for developing and prototyping your mobile app. While the iOS Simulator can be used to test your app's basic behaviour, it is severely limited as a testing platform.


2 Answers

In the Hardware menu, choose Shake Gesture.

like image 73
Aviad Ben Dov Avatar answered Sep 18 '22 17:09

Aviad Ben Dov


The shortcut for shake is Control+Command+Z

like image 43
Elye Avatar answered Sep 21 '22 17:09

Elye