【问题标题】:Assertion failure in -UIPickerTableView-UIPickerTableView 中的断言失败
【发布时间】:2015-09-01 18:14:44
【问题描述】:

*** -[UIPickerTableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] 中的断言失败,/SourceCache/UIKit_Sim/UIKit-3318.93/UITableView.m:9269

应用程序因此错误而崩溃。请有人帮忙。

【问题讨论】:

  • 我已经尝试了之前文章中提到的所有解决方案。需要不同的解决方案。谢谢!

标签: ios ipad ios-simulator


【解决方案1】:

类似问题及解决方案

问题:应用程序将 UIDatePicker 作为 3 个或更多 UITextField 的输入视图。将日期设置为第一个文本字段效果很好。当我尝试时应用程序崩溃了 datePicker.setDate(NSDate(), animated: true)

解决方案:我为解决我的问题的每个文本字段创建了不同的 UIDatePickers。

以下参考对于类似情况有一些其他解决方案: Assertion failure in -[UIPickerTableView _createPreparedCellForGlobalRow:withIndexPath:], /SourceCache/UIKit_Sim/UIKit-2903.2/UITableView.m:7768

【讨论】:

    猜你喜欢
    • 2011-05-27
    • 2017-08-07
    • 2012-08-01
    • 2012-09-26
    • 2015-09-26
    • 2011-09-08
    相关资源
    最近更新 更多