我有以下功能,以前干净地编译,但使用Xcode 8生成警告.
func exitViewController() { navigationController?.popViewController(animated: true) }
"表达式类型"UIViewController?"未使用".
为什么要说这个,有没有办法删除它?
代码按预期执行.
ios swift
ios ×1
swift ×1