【问题标题】:Swift Error : 'DYLD_BOOL' is not convertible to 'bool'Swift 错误:“DYLD_BOOL”不能转换为“bool”
【发布时间】:2014-10-17 05:36:16
【问题描述】:

我正在开发一个简单的基于 tableview 的应用程序,如果用户触摸任何单元格,那么他将导航到 DetailViewController,当用户单击 DetailViewController 时,他会返回到我使用的 tableView:

override func touchesBegan(touches: NSSet, withEvent event: UIEvent) {
    self.dismissViewControllerAnimated(TRUE, completion: nil)
}

但是我以后不能在 small 中使用 true 并且那行给我这样的错误:

'DYLD_BOOL' is not convertible to 'bool'

解决办法是什么?

【问题讨论】:

标签: swift boolean


【解决方案1】:

只需使用true,而不是TRUE

【讨论】:

  • 感谢您的帮助.. :)
猜你喜欢
  • 2017-11-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-10-23
  • 1970-01-01
  • 2011-09-28
  • 2015-04-25
相关资源
最近更新 更多