开发者

How to handle an Event of a programmatically created object?

开发者 https://www.devze.com 2023-02-02 03:26 出处:网络
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?开发者_高级运维

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

精彩评论

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