新版的Swift闭包做参数默认是@noescaping,不再是@escaping。
如果函数里执行该闭包,要添加@escaping。
12-22
1980
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交