值类型错误SWIFT/XCODE [英] Value type error SWIFT/XCODE

查看:124
本文介绍了值类型错误SWIFT/XCODE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表格视图,希望在选择单元格时弹出视图控制器而不是segue,尽管我收到此错误类型为'UINavigationController'的值没有成员'popViewController'"-有什么想法吗? ?

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???

请注意:我使用的是swift 2和xcode7

Please note: I am using swift 2 and xcode7

推荐答案

我认为在Swift 2和Xcode 7中,该函数是:

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

navigationController?.popViewControllerAnimated(true)

这篇关于值类型错误SWIFT/XCODE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆