问题描述
我现在已将我的三个应用程序更新到iOS 7,但在这三个应用程序中,尽管它们没有共享任何代码,但我遇到的问题是,如果用户滑动返回导航控制器(而不是点击后面)按钮)快速,单元格将保持其选定状态。
I've now updated three of my apps to iOS 7, but in all three, despite them not sharing any code, I have the problem where if the user swipes to go back in the navigation controller (rather than tap the back button) quickly, the cell will remain in its selected state.
对于三个应用程序,一个使用以编程方式创建的自定义单元格,另一个使用在故事板中创建的自定义单元格第三个使用UITableView的一个非常基本的子类中的默认单元格,也在故事板中。在所有三种情况下,细胞不会自行取消选择。如果用户缓慢滑动或点击后退按钮,他们会正常取消选择。
For the three apps, one uses custom cells created programmatically, another uses custom cells created in a storyboard and the third uses default cells in a very basic subclass of UITableView, also in a storyboard. In all three cases, the cells don't deselect by themselves. If the user swipes slowly, or hits the back button, they deselect as normal.
这只发生在我的iOS 7应用程序中,Apple自己的应用程序和升级的第三方应用程序对于iOS 7而言,所有似乎都表现正常(尽管细胞取消选择的速度略有不同)。
This is only happening in my iOS 7 apps, Apple's own apps and third party apps upgraded for iOS 7 all seem to be behaving normally (albeit with slight differences in how quickly the cells gets deselected).
一定有些事情我做错了,但我我不确定是什么?
There must be something I'm doing wrong, but I'm not sure what?
推荐答案
我正在处理同样的问题。 :
这正是我期望的行为......但它似乎不起作用。既不适合你,也不适合我。我们真的必须使用脏解决方案并自行完成。
This is exactly the behavior I expect… but it does not seem to work. Neither for you nor for me. We really have to use the "dirty" solution and do it on our own.
这篇关于快速向后滑动时,UITableViewCell不会被取消选中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!