UISlider 在 UITableViewCell 中不起作用 [英] UISlider doesn't work inside UITableViewCell
问题描述
我想将一个带有两个选择器点的滑块作为一个范围放入 UITableViewCell(在静态 UITableView 中).我试过这个库 https://github.com/muZZkat/NMRangeSlider
I want to put a slider with two selector points as a range into a UITableViewCell (in static UITableView). I tried this library https://github.com/muZZkat/NMRangeSlider
但它不起作用.有时它响应,有时不响应.
But It doesn't work. Sometimes It response, sometimes not.
之后我尝试了一个简单的 UISlider 并且得到了相同的结果.
After that I tried with a simple UISlider and I got the same result.
我尝试以编程方式和故事板添加 UISlider.两种选择.同样的结果.
I tried to add the UISlider programmatically and with the storyboard. Both options. The same result.
推荐答案
我是 Javier 的同事.我们找到了一个可以监听滑动手势的第三方库(像 Facebook 这样的左菜单).我们在左侧菜单(应用交叉)中禁用滑动手势,然后工作正常.
I'm a Javier's coworker. We find a third-party library (Left Menu like Facebook) that listen swipe gesture. We disable swipe gesture in the left menu (app cross) then works fine.
这篇关于UISlider 在 UITableViewCell 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!