开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜