2014-10-17 77 views
2

我正在開發一個簡單的基於tableview的應用程序,其中如果用戶觸摸任何單元格,那麼他將導航到DetailViewController,當用戶單擊DetailViewController時,他會返回到tableView爲此,我使用:Swift Error:'DYLD_BOOL'is not convertible'bool'

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

但我不能在小的使用真正的後來和該行給我的錯誤,如:

'DYLD_BOOL' is not convertible to 'bool' 

,這是什麼解決辦法嗎?

+0

這裏的另一個問題的答案的鏈接: http://stackoverflow.com/a/26875335/1869369 – 2014-11-11 22:12:00

回答

6

只需使用true,而不是TRUE

+0

感謝您的幫助.. :) – 2014-10-17 06:14:06