开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜