I have a dynamic table view with cells populating from a db.
When a cell is selected the user should have the possibility to choose few other options.
I know how to push another view when the cell is selected but I don’t like this approach graphically.
It could be better if, for example, the same cell could flip over and show the options (then flip back) maybe with a swipe.
Or the entire cell could slide off the screen revealing the options, or another view could slide down from the cell and then slide back up.
Which of these solutions is the easiest to do?
Can anyone point me to the right direction? I don’t need the code of course, I’m here to learn and I just need to know what to look at.
Until now, I’ve read something about subclassing the UITableViewCell, but, honestly, I haven’t got it yet.
Any input will be greatly appreciated.
You would use a UITableViewCell subclass with a foreground and a background view and a UIPanGestureRecognizer. this recognizer will trigger the swipe and handles the moving of the foreground view.
that said, you’ll find a implementation here: https://github.com/spilliams/sparrowlike
the important bits: