简体   繁体   English

长时间滑动即可在IOS TableView中删除

[英]Long swipe to delete in IOS tableview

I implemented swipe to delete in IOS tableview ad it works fine in IOS 10 and IOS 11. 我在IOS tableview广告中实施了滑动删除操作,在IOS 10和IOS 11中效果很好。

I can swipe the row, click on delete button and it works out. 我可以滑动该行,单击“删除”按钮即可。 In IOS 11, I can do a long swipe to delete it whereas in IOS 10 when I try to do a long swipe to delete it does not work. 在IOS 11中,我可以进行长时间滑动以将其删除,而在IOS 10中,当我尝试进行长时间滑动以将其删除时将不起作用。 I have to swipe and click on delete button explicitly. 我必须滑动并明确单击删除按钮。 I tried this in IOS 10 simulator and not a real device. 我在IOS 10模拟器中尝试了此操作,而不是真正的设备。

Is it possible to get long swipe to delete working ion IOS 10 as well. 是否可以长按以删除工作离子IOS 10。

iOS 10 does not natively support this gesture, only iOS 11 does. iOS 10本机不支持此手势,只有iOS 11支持。

You'll have to implement your own solution, or use one of the 3rd-Party-Libraries out there that implement long swipe, such as https://github.com/MortimerGoro/MGSwipeTableCell 您将必须实施自己的解决方案,或者使用在那里进行长时滑动的3rd-Party-Libraries之一,例如https://github.com/MortimerGoro/MGSwipeTableCell

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM