Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I swipe the only needed cell? #63

Closed
EvgenyKarkan opened this issue Mar 3, 2015 · 2 comments
Closed

How can I swipe the only needed cell? #63

EvgenyKarkan opened this issue Mar 3, 2015 · 2 comments

Comments

@EvgenyKarkan
Copy link

Hey!
I need to implement such feature - to swipe only needed cell in my table view. (not every cell)
Please point me - how can I disable and enable swipe for needed cell?
I suggest - it will be possible by set the right or left buttons to nil.
But maybe there is a more clear way to do it?
Best wishes!

@mergesort
Copy link
Contributor

- (BOOL)swipeTableCell:(MGSwipeTableCell *)cell canSwipe:(MGSwipeDirection)direction tableView:(UITableView *)tableView;

Just return YES for the cells that you want to swipe, and NO for the ones you don't want to swipe.

@EvgenyKarkan
Copy link
Author

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants