Archive for March, 2011

Swipe gesture in UIAutomation

Wednesday, March 23rd, 2011

It took me a while to figure this out, but the key is that in your gesture coordinates, the values cannot result in a perfect translation left to right (and presumable up and down, but I didn’t test a vertical gesture.)

(more…)

iOS Simulator detection

Wednesday, March 23rd, 2011

When working with iOS features that are only available on the devices and not in the Simulator, it can be helpful for testing to pop an alert or provide ‘stub’ data.

(more…)

UIAutomation ‘typing’ on the keyboard

Monday, March 21st, 2011

I was looking for a way to use the iOS keyboard directly, Stack oveflow to the rescue again.

(more…)

Setting ORGANIZATIONNAME in Xcode

Sunday, March 13th, 2011

When a new file is created in Xcode, there is a boiler plate copyright section at the top of the document, which by default is set to ‘ORGANIZATIONNAME’.

(more…)

Using gdb to print out Objective-C objects

Monday, March 7th, 2011

Sometimes the object that you want to debug is more complicated then an int or string.

In those situations, you will need to ‘pass a message’ to the object:

Even then, there are occasions where you will have to use a selector:

And finally, use a selector with an object as an argument:

Reference:
stackoverflow
wiki