is it possible to scroll on a tableview in the simulator with the trackpad without clicking it actually? It gets very annoying at some time
You can open the three finger drag by follow, but it may case some delay.
From the Apple menu, choose System Preferences.
Click the Accessibility icon.
Choose Mouse & Trackpad from the options on the left.
Click Trackpad Options.
Place a checkmark next to "Enable dragging."
From the related pop-up menu, choose “three finger drag” so there's a checkmark next to it.
Click OK.
From: https://support.apple.com/en-us/HT204609
Related
Sorry for the confusing title but I can't get my head around to find the right words for this scenario:
We have an iOS app that has a top-left menu button. If you tap it, a side menu opens and most of the screen (incl. the menu button) are slid to the right.
for Calabash I need to track the ID of the view that is slid to the right. Any tap on the whole slid-to-right view area will close the menu. The menu icon itself seems to have no other function than being a visual help and its accessibility ID cannot be found by Calabash while the menu is open.
Does anyone know how iOS handles this kind of navigation? To sum it up:
We have an initial view open with a menu button.
If button is tapped, menu slides in from left and current view is moved to right (mostly out of the screen).
You can now tap any of the remaining visible area of the initial view and the menu will close again (the menu button seems to receive no touch during this).
I need to figure out to what assign an accessibility ID to so that Calabash can 'imitate' a tap on the slid-out, initial view to close the menu.
Have you tried using the Accessibility Inspector in the Developer Tools of Xcode? This might help you in seeing whether or not you can interact with the slid-out menu.
Also if you haven't tried using the calabash command tree - I'd give that a go as well. For that open the menu you're trying to interact with use the command calabash-ios console > console_attach > tree.
You will be able to see the whole view hierarchy here, you can even run tree before and after the menu pops out to see if it makes a difference.
I'm trying to design a custom keyboard for iOS 8. Here are my development steps:
1. Created new project (Single view)
2. Created a new target: File > New > Target, and in the iOS template group chose the Custom Keyboard template.
Then I tried to enable the keyboard based on the documentation steps, which are:
1. Run the app
2. In iOS Simulator, press home button (Command+Shift+H)
3. Go to Settings > General > Keyboard > Keyboards.
4. Tap Add New Keyboard.
5. In the Purchased Keyboards group, tap the name of your new keyboard. A modal view appears with a switch to enable your keyboard.
6. Tap the switch to enable your keyboard. A warning alert appears.
7. In the warning alert, tap Add Keyboard to finish enabling your new keyboard. Then tap Done.
My problem is in step 5. The modal view does not show a switch to activate the keyboard, it shows an empty view like bellow:
I clicked on Done button and it shows my Custom keyboard in activated list:
But when I want to use this keyboard, for example in spotlight, it won't show my keyboard
Clicking the done button will activate the keyboard. There are some definite bugs in those menus.
To change keyboards, you can also try just tapping on the button to change keyboard, rather than holding it like you were in the last screenshot.
Also, it looks like you have the language for that keyboard set as persian, and my guess would be that it is not appearing because your system language is not persian (or the text field you are typing in doesn't support persian).
I wouldn't be surprised if there are other bugs in the simulator that would affect this. I'm glad to hear you were able to get it working.
After you click done, it should install the keyboard, even if you don't see the list in the settings table.
About the keyboard not showing up - you need to kill the app before running a new keyboard. it's a known issue on the simulator.
good luck!
I am trying to detect gestures on a specific part of my screen close to the right hand most side.
When I try tapping using this approach (iOS simulator: how to do a 2 finger single tap on a mac laptop?), the two "fingers" appear at opposite ends of the screen. How do I get the simulator to tap so that the "fingers" are next to each other.
Use Option key to show two fingers icons on simulator screen. Place them as close as you want them to be. Then press Shift to move them to wherever on the screen you want.
When in the simulator, hold the option key down and click - this will simulate a two-finger tap!
I have a scroll page that I specified two fingers minimum. It works on my device, but don't know how to mimic this gesture on Simulator. I can mimic one-finger scroll without problem. I've tried option/ctrl/shift etc, but couldn't get it work. Maybe my combination is wrong. Anyone knows how? Thanks.
Holding the "Alt/Option" key and dragging simulates multi-touch pinch-to-zoom.
Holding "Alt/Option + Shift" and dragging simulates multi-touch scrolling.
There is a nice table with all the supported gestures in the iOS Simulator User Guide from Apple. Here is the extract for the two-finger drag:
Place the pointer where you want the two-finger drag to occur.
Hold down the Option key.
Move the circles that represent finger touches to the start position.
Move the center of the pinch target by holding down the Shift key, moving the circles to the desired center position, and releasing the Shift key.
Hold down the Shift key and the mouse button, move the circles in the direction you want to drag, and release both the Shift key and the mouse button.
Hope it helps.
To appear two fingers:
press ALT and drag mouse.
To zoom using two fingers:
press ALT and press SHIFT (to adjust touches.After adjusting release SHIFT key) and drag mouse.
Things moved around in Sierra for me, but here is how I enabled 3-finger scrolling:
**System Preferences > Accessibility
Scroll down to Mouse & Trackpad and tap Trackpad options
Make sure 'Enable Dragging' is selected
Select 'three finger drag' from the drop-down
Makes such a big difference when testing on various devices & simulators.
The best way to scroll in the iPad simulator is by the Three Fingers dragging, which is a global setup of the OS X and not a particular feature of the iOS simulator.
In order to scroll using three fingers you need to turn on the 'Three Finger Drag' under TrackPad > Point and Click in the Settings App of OS X.
and to set the Mission Control and App Exposé to use four fingers (in TrackPad > More Gestures in the Settings App of OS X)
(I made beautiful screenshots, but I'm too rocky to post answers with images)
It works with Three finger scroll on the Track pad.
It works for me on MBP trackpad as well as on Magic Trackpad.
The clue is to enable "Three finger drag" in Trackpad settings (Preferences.app), then dragging, while ALT+SHIFT are pressed, makes scrolling work as expected.
It also works with the "Three finger scroll".
It kind of annoys me how small the iPad simulator is... Some apps I have in mind I have difficulty testing because of the small size of the iPad simulator. Is there anyway to make it larger than it currently is?
Menu Bar: Window->scale as shown in comments by chpwn.
You can always zoom the screen in. Usually something like control-scroll but check your mouse or trackpad system preferences. command-option-backslash toggles antialiasing if you need to see magnified pixels when zoomed in.
in iPhone Simulater menu bar go to
window > scale > 100%
To add to this, you can create a keyboard shortcut to make it easier:
goto System Preferences -> Keyboard -> Keyboard shortcuts
click small "+" at bottom of list
drop down Application list and scroll to bottom, choose Other
browse to /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications (at least on my machine)
choose iOS Simulator
for Menu Title enter "100%" without the quotes
for Keyboard Shortcut, press your shortcut key e.g. Cmd-F ('F'ull screen)
click Add and you're done
close and restart the simulator and press Cmd-F
HTH - DF
press command 1, Command 2, or, Command 3. it will change the screen size. Easy fix!