Hi,
Is it possible to press a button in iPhone SDK programatically without the user touching it?
Thanks.
Hi,
Is it possible to press a button in iPhone SDK programatically without the user touching it?
Thanks.
Do you want the user to see the button as pressed? Set the highlighted
property to true and it will look like being pressed.
Now, if you just want to simulate the consequence of a button being pressed, just call the selector you assigned to the "Touch Up Inside" or "Touch Down Inside" events.
You could synthesize a touch on the button's coordinates, and set the appropriate event here's how