nosuic
nosuic

Reputation: 1360

How to handle an Event of a programmatically created object?

That's a very basic question.

How can I catch for example the "touchesBegan" event of a UIWindow instance? So that whenever the user is touching the window a method I set is called?

Thank you!

F.

Upvotes: 0

Views: 172

Answers (2)

nosuic
nosuic

Reputation: 1360

Posting the tutorial that got my head around Gesture Recognisers: http://www.conceitedcode.com/2010/06/implementing-gesture-recognizers/

F.

Upvotes: 0

Ole Begemann
Ole Begemann

Reputation: 135558

For iOS 3.2+: Create a gesture recognizer and add it to the view you are interested in.

Upvotes: 1

Related Questions