开发者

how to recognize a rub gesture on UITableView?

开发者 https://www.devze.com 2023-04-12 03:38 出处:网络
I m working with iOS 4 and working with UIGestureRecognizer . my question is how can you create / detect a rub gesture on a table view cell . By rub gesture i mean how can i detect a right followed b

I m working with iOS 4 and working with UIGestureRecognizer .

my question is how can you create / detect a rub gesture on a table view cell . By rub gesture i mean how can i detect a right followed by a left swipe . i know how to detect left and right swipes individually and also on detecting it i know how to enable the editing for a single table view cell on which the swipe is made .. The main question is how to detect right swipe followed by left swipe or a left swipe followed by righ开发者_如何学编程t swipe.

All ideas are welcomed.


Use a very simple state machine to implement the sequence of swipes both ways.

0

精彩评论

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

关注公众号