How to change the keyboard shortcut of Shake/Shake Gesture? - ios

I updated Xcode to 9.0 and now ⌘R no longer works in the iOS simulator to reload the application, and ⌘D no longer opens the Developer Menu.
The new shortcut for the Developer Menu is ^⌘Z, and there is no shortcut to reload the application anymore.
Is there any way that I can change the shortcut of the Shake Gesture from ^⌘Z and get it back to ⌘D?

Navigate to System Preferences.app/Keyboard/Shortcuts.
Select App Shortcuts from the menu on the right and click on the plus sign (+).
Select Simulator as the application from the drop-down list.
Enter Shake (Xcode 11 and above) or Shake Gesture (Xcode 10 and earlier) for the menu title and press ⌘D while the Keyboard Shortcut menu is in focus.
Click on Add to save changes.

Related

What is the iOS simulator Command symbol on Touch Bar?

I am running the iOS simulator, using the default Touch Bar controls. I tried "Customize Touch Bar...", but that didn't have the Command icon in the list of controls.
It seems like I can toggle it, and it turns blue when toggled.
What does the 5th symbol/icon in the middle group do?
It toggles whether or not keyboard shortcuts are intercepted by Simulator.app or sent to the simulated device.

How to quit or close single simulator from opened multiple simulator in Xcode 9?

I run multiple simulator and I need to close one of them. How can i do this? Because I tried to close it like we does in older version of Xcode but can't close.
Select Simulator.. Go into File Menu -> Close window or press [Command + W ]. It will close the simulator which is on top .
Go into Windows menu -> uncheck Show Device Bezels. Then you can close using red cross icon on simulator.
There are two ways to close particular Simulator form Multiple simulators
Long-press power button on the right-top of simulator , then slide to turn off power, a single simulator will be close.
Go into File Menu -> Close window or press [Command + W ]. It will close the simulator which is on top
1) Simple way to close single simulator
-> Select required Simulator
-> Click Command + W (⌘W).
2) If you want to minimise simulator
-> Select required simulator
-> Click Command + M (⌘M).
3) For screen shot of simulator
--> Select required simulator
-->Select Commend + S (⌘S).
4) If you want to rotate simulator(for landscape mode)
-> Select required simulator
-> Click Command + left arrow or right arrow.
See below screen for left arrow or right arrow
To long-press power button on the right-top of simulator , then slide to turn off power, a single simulator will be close.
I found a way, but it was by a program I used called HyperDock. It gives a preview of the app windows that are opened when you hover over the icon in the dock. It will give you an option to close the simulator window when you see the preview.
Click Simulator. Open simulator dropdown from the top menu. Click on quit simulator

How to add a listener to the ios keyboard Backspace Button

In my iOS app i have 4 input pins X-X-X-X and what i want is if the user taps backspace, the value of my pin box will be deleted in an order from right to left.
I have solved this issue by showing a custom keyboard if the iOS version is 8.1 and 8.2. Those version have bugs on backspace. See my custom keyboard on github: https://github.com/rhonnel/iOS-Custom-Keyboard.git

iOS Keyboard extension

I can't select the keyboard extension I added.Namely, I added my custom keyboard application extension target.I then build and run the target with an application and went to
Settings > General > Keyboard > Keyboards -> Add New Keyboard and added my new keyboard.
I now have English, Emoji and myKeyboard under Keyboards. I then go back to the application i
started the keyboard with and tap on a text field and the standard iOS keyboard pops up. I try to tap and hold the globe button and only English and Emjoi keyboards are available for selecting. Any ideas why ?
If you are doing it on simulator, you will not be able to choose your custom keyboard extension from the keyboard menu in your container app. it is known issue in Xcode 6.1, hasn't fixed by apple yet .
You can try display your keyboard in the stock contacts app on the simulator, or you could just run your app on real device.

Back button appears with button outline

I am working on an app which supports iOS 6 to latest iOS versions. When I run the app in Xcode 5 and select target as iOS7; Sometimes the back button in navigation bar appears with the iOS6 button style as an outline around it in iOS7. I wanted to enable default feature of iOS7 that back button without outline.
other buttons look fine with iOS7 without outline.
I think you are using images for the button, use default system buttons.
check whether you have used button style as UIBarButtonItemStylePlain

Resources