Is there any way to make the iPad simulator bigger? - ipad

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!

Related

Xcode 8.3 settings

I am new to Xcode and have two questions.
Main.storyboard: I want to see the whole iPhone, but now 2/3 of the screen is a white background. How to fit it to show only the whole device ? link
I noticed that when I get an exception, there are some new windows opened in Xcode and I just can't get back to my previously opened stuff without manually closing these new windows and starting again which is pretty frustrating; how can I prevent it ?
Additional explanation: first problem
a) I set zoom and resize the window (upper image)
b) I click button in upper right corner (middle image)
c) Now I click this button once again to go back - but everything gets messed up and I need to manually resize it again here
I just want my device to be fixed as it is in AndroidStudio for example.
The solution for your first problem is like right click on the main.storyboard then you will see a menu of options where you can set the appropriate zoom level
Please provide some screenshots for the second problem.

Calabash Tracking Of Closing A Side Menu

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.

Keyboard isn't visible when clicking text input of UIWebView

when selecting a text field on a uiwebview the keyboard isn't visible.
i check the keyboard frame when getting the notice that the keyboard will appear. there IS a frame.
i think it has something to do with the constraints i have to do the layout of the views.
what is the correct (most simple) way to adjust those constraints (if that is indeed the issue) to "make room" for the keyboard?
curiously the little bar that typically appears with the keyboard is visible ... the one that looks like this :
| < > Done |
this is getting frustrating so any help is appreciated as usual :)
i should probably add that the setup i have is a uiscrollview that contains uiwebviews. the scrolling is turned off in the scrollview so as not to get things too confused. everything seems to work as intended .. except this keyboard issue.
I have encountered the same problem before as you have now.
I believe it is triggered automatically by the iOS simulator when accidentally typing with your real keyboard in the text field instead of "clicking on the keyboard" in the simulator.
To resolve this issue, simply go to the iOS simulator, navigate to the Menu bar:
"Hardware > Keyboard" and uncheck "Connect to external keyboard".
The problem should now be solved.
This can happens in 2 cases:
in simulator
if your iPhone or iPad use external keyboard

How to launch Appium test with a certain language keyboard on iOS simulator

I am running tests which require having different keyboards open while typing throughout the app. I want to be able to run a test that perhaps launches a script that changes the default language before the test begins. I know you can run scripts which do similar things to change the state of the simulator however I cannot find where the keyboard settings are located.
I spent some time trying to figure this one out.
Here's what I've got for you:
To use different keyboards, you need to tell manually the Simulator which languages you plan on using when you type.
From then on, whenever the keyboard is up, there will be a UIAKey named Next Keyboard that looks like a Globe.
Do a long press on it to get an action sheet open with all the different languages, or click it once to cycle through the keyboards.
Step-by-step:
Go into System Preferences on the simulator
Click on General
Click on Keyboard
Click on Keyboards
Click on Add New Keyboard...
Select (Language)
Close the Simulator
Open your app
Click on a Textfield
See the Globe Button
Click the Globe Button
Keyboard should now be in (Language)

Simulate a 2 finger single tap on the simulator

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!

Resources