Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableViewCell Swipe for Drawer

This is really more of a curiosity than a hard coding question.

Both Facebook and Twitter both have a feature where swiping a UITableViewCell animates the cell off the side to reveal a drawer with more controls underneath. How is something like that accomplished?

like image 366
DVG Avatar asked Jul 15 '10 20:07

DVG


2 Answers

Here is a great open-source method for doing exactly this, based on the behavior of the Twitter app:

https://github.com/thermogl/TISwipeableTableView

like image 146
FrederickCook Avatar answered Nov 10 '22 12:11

FrederickCook


This is a problem I have tried a couple of different solutions to. I really liked the behavior of Mailbox (mailboxapp.com). So I set out to achieve this. In the end I ended up with what I believe is a very simple solution: use a UIScrollView inside your cell. I have blog post that discusses and a sample app that demonstrates this behavior.

like image 28
Derrick Hathaway Avatar answered Nov 10 '22 12:11

Derrick Hathaway