objective-c - 如何避免 UITableView 出现 'double select'?

标签 objective-c ios uitableview

这是屏幕截图...选中了 tableView,两个蓝色单元格。

enter image description here 我如何模拟: 我选择一个 tableCell,然后,它推送到第二个 View ,然后我回到第一个 View ,并选择第二个 tableCell,是否会导致此问题。我该如何解决这些问题?谢谢...

最佳答案

在转到第二个 View 之前,取消选择单元格:

[myTableView deselectRowAtIndexPath:indexPath animated:YES]; 

关于objective-c - 如何避免 UITableView 出现 'double select'?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9564436/

相关文章:

ios - 作为对象减去数字 - Objective C

c# - Xamarin Studio Storyboard​​空白

iphone - UINavigationBar 上的类别 - 仅适用于某些 Controller

iphone - 如何将 UITableView 正确定位在 View 顶部的固定点?

ios - Swift:IBoutlet 总是返回 nil 对象?

ios - 在解析推送通知中将用户名作为变量发送

iphone - 新手: UINavigationController is pulling me back from further learning :(

ios - 实现服务器端应用内购买

ios - 我正在尝试从 jazzy 库生成文档,但出现以下错误

ios - 从 Firebase 中删除表格 View 单元格