"Expression of type "UIViewController?" is unused".
来源:互联网 发布:手机签名设计软件 编辑:程序博客网 时间:2024/05/20 06:07
func backVC(){
self.navigationController?.popViewController(animated:true)
}
运行时的时候报警告"Expression of type "UIViewController?" is unused".
主要是swift2都有一个默认可以废弃的结果
在swift3.0情况下修改方式如下
func backVC(){
_ = self.navigationController?.popViewController(animated:true)
}
1 0
- "Expression of type "UIViewController?" is unused".
- Xcode 8, Swift 3: “Expression of type UIViewController? is unused” warning
- Xcode 8 / Swift 3: “Expression of type UIViewController? is unused” warning
- Swift3 - Result of call '***' is unused
- Oracle for in loop循环时expression is of wrong type报错
- what is Freedom of expression ?
- Swift Result of call to ‘XXX’ is unused
- Swift3.0 Result of call to 'XXX' is unused
- 解决Type safety: The expression of type List needs
- Swift 3.0 出现 Result of all to 'XX' is unused 警告 解决
- illegal use of this type as an expression 解决方案
- error C2275! illegal use of this type as an expression
- 'PIO_STACK_LOCATION' : illegal use of this type as an expression
- illegal use of this type as an expression
- illegal use of this type as an expression
- C2275 illegal use of this type as an expression
- Initializing 'AppDelegate *__strong' with an expression of incompatible type
- error: invalid new-expression of abstract class type 'Rectangle'
- 斯坦福机器学习网易公开课笔记12
- Linux学习笔记-文件目录管理(鸟哥7章)
- 《一本书读懂TCP/IP》读后感——第二章 TCP/IP网络组成
- zoj 1041_Transmitters_计算几何
- MVC框架显示层——Velocity技术
- "Expression of type "UIViewController?" is unused".
- Xamarin绑定微信SDK 实现分享功能
- POJ 2996 模拟,读题
- TCP/IP详解学习笔记(4)-ICMP协议,ping和Traceroute
- 转:在 Ubuntu 上使用 Nginx 部署 Flask 应用
- UIScrollView详解
- 最短路径问题---Floyd算法详解
- 绘制loss和accuracy曲线
- java面向对象