开发者

How can I make a UIButton get a function when I touch outside the button and drag over the button? [duplicate]

开发者 https://www.devze.com 2023-03-06 00:37 出处:网络
This question already has answers here: 开发者_如何学运维 How can I make a UIButton get a function when I touch outside the button and drag over the button?
This question already has answers here: 开发者_如何学运维 How can I make a UIButton get a function when I touch outside the button and drag over the button? (2 answers) Closed 9 years ago.

If I had a label and a button If i touch outside the button and swiped over the button then an event should be fired to display "hello" in the label field. tell me how can I do it?. Its not about touching the button. i can touch any part of the screen .I starts to swipe the mouse after touching any part of the screen, then if I swipes over the button ,it should call a function something like display a text in label.



You can use Button's Touch Drag Enter method to do your stuff.

0

精彩评论

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