简体   繁体   中英

Handling UITableCell move left (or move right) event?

I want to creat an UITableView which each cell (UITableCell) in this table can be moved left or moved right (System will be notified when user touchs down the cell and moves finger to left or right). Anybody can tell me how can i do it :) Thanks :)

I want to build a Table which each TableCell in it become a menu likes image bellow when user touch up TableCell and move finger to left or right!

替代文字

I would guess this is done by watching for the touch events, being the first responder and monitor all touch events before you send them further to the UITableView under.

I think there is a source code from Apple that shows this.. think it's called Gestures or TableView Gestures... do a search on the Apple site.

Also, do read on the UIGestureRecognizer docs from the SDK. These can be attached to a certain view, I read.

Good luck, let us know if you're successful.

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