I have a problem in my gesture recognizers. My goal is to implement using swipe to delete in my table view. But I think other gestures are conflicting with each other. I'm using this libray romaonthego/REFrostedViewController this a library for my hamburger menu and this library has a pangesture feature. I think the conflict is w/in the gestures. because when I run my code of my tableview in another project it's working.Pls help, Thank you in advance.
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
First of all... check if you have this
and second...
try to add this
https://stackoverflow.com/a/14338043
Edit: Updated for iOS 11
The other answers were helpful, but in my case the best solution was to do the logic in
shouldRequireFailureOfOtherGesture
like so:This had a much better behavior in my case. I also used
delaysTouchesBegan = YES
on my pan gesture. Might be useful!In iOS 11,hope this can help you.
I had a similar problem, what I ended up doing is similar to TonyMkenu , but there are more recognizers that you need to allow:
}