问题
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