简体   繁体   中英

what is use of UIGestureRecognizer and diffrence between UITouch and UIGestureRecoginzer

hi friends i'm new in iphone so i cant understand the UIGestureRecoginzer. if someone know the answer means pls help me and UITouch also......

UITapGestureRecognizer UISwipeGestureRecognizer

The difference is that you can write everything one of the defined UIGestureRecognizer does in UITouch code, but it will be complex and probably buggy, so you have access to some of the most commonly used gestures for free.

A good start is the Apple Event Handling Guide , explaining the difference and the applications of both methods.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM