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.
For iOS 3.2+: Create a gesture recognizer and add it to the view you are interested in.
Posting the tutorial that got my head around Gesture Recognisers: http://www.conceitedcode.com/2010/06/implementing-gesture-recognizers/
F.
精彩评论