-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Only Swipe Gesture will work #1
Comments
Sorry, ignore that commit. I am working on this hopefully today, in the mean time you can add a UITapGestureRecognizer to the top UIScrollView in the SWTableViewCell to capture selection. |
I add a UITapGestureRecognizer to SWTableViewCell. Added a delegate method to SWTableViewCellDelegate
|
Hi. Just to say that I had to implement am heavy workaround for a similar component https://github.com/mbigatti/BMXSwipableCell. Hope you'll find a better solution |
@Soumin can you explain more? |
Workaround: @protocol SWTableViewCellDelegate
and create the following method:
then, in the view controller where the tableView is located add the code.
} Now the method didSelectRowAtIndexPath will be called when you tap inside a cell |
This should be fixed now. It behaves like the iOS 7 mail app where the cell will be selected if the utility buttons are not visible, but if they are touching the cell will simply scroll it back into place. I still need to add the touch highlight. |
First off, great library. Learning tons from it. I'd also be interested in figuring out a solution to do cell highlighting. Why has cell selection highlighting disappeared? Subview ordering? I also found it weird that the library was asking for the cell's indexPath. Wouldn't you want to use |
Yea I actually plan to implement cell highlighting tonight. The reason its not there right now is I actually have my own Also I completely forgot |
hide the swipe menu when all the elements have a clear background
…has not yet swiped
Great job. Its exactly what I was looking for. But if I implement this cell, I can only have right swipe or left swipe. Selecting a row gesture will not work. Can you improve this so that other gesture like selecting the cell?
The text was updated successfully, but these errors were encountered: