Slide over UITableViewCell, present another cell. Framework?
I am trying to find either a framework or make one myself that can do this:
When you slide/swipe across a UITableViewCell, another cell gets displayed (with options such as Share on Twitter, Facebook, email etc). The Twitter-app has got this, and I was wondering if there was an open framework for it.
If not, where do you recommend I start to make this on my own?
Thanks.
To detect a swipe, use Apple's UISwip开发者_运维技巧eGestureRecognizer
.
I created the same thing a couple of months ago. Unfortunately, I can't find the code itself right now, but here are some guidelines:
- To handle swipe gesture use examples like this or google - there are tons of swipe detection manuals :).
- To show different view, use
[UIView beginAnimations]
. You may show new UIView instead of UITableViewCell's contentView.
Please let me know if you have questions.
精彩评论