Value type error SWIFT/XCODE

人盡茶涼 提交于 2019-12-24 11:27:05

问题


I have a table view where i want the view controller to pop instead of segue when the cell is selected although I am getting this error "Value of type 'UINavigationController' has no member 'popViewController'"-- Any ideas???

Please note: I am using swift 2 and xcode7


回答1:


I think in swift 2 and Xcode 7 the function is:

navigationController?.popViewControllerAnimated(true)


来源:https://stackoverflow.com/questions/40319160/value-type-error-swift-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!