Event Handling

iPhone Developer Tips Visitor Stats:
126,691 Pageviews and 94,296 visitors in the past 30 days.



Encapsulating Begin Ignoring Events and End Ignoring Events

There are times when it’s really handy to stop event processing momentarily so you can perform an update to the UI (e.g. sliding a custom view into place using a timed animation) or you otherwise need to save the user from themselves by momentarily stopping touch events. I’ve written previously on How to Suspend / [...]

Event Handling

How Long was a Touch Event – Detecting When a Touch Event Starts and Ends

Here’s a quick tip that shows how to determine the length of time from a begin touch event to an end touch event. I used a similar snippet of code recently when I had to determine if a user tapped on an image or held their finger on the image for a pre-determined amount of [...]

Event Handling

Suspend or Ignore Touch Events

Temporarily stop/suspend touch events on the iPhone.

Event Handling

Where Was Touch – Determine if Touch/Point is Within Rectangle

I recently had to write a short chunk of code to determine when a user touches a specific rectangular region on the screen. Detecting this is nothing more than getting a reference to a CGPoint (x and y coordinates) of the location touched and checking to see if the point is within the rectangular bounds [...]

Event Handling