用这篇文章的代码
http://blog.youkuaiyun.com/liuyu1114/article/details/24771717
但是报错,不能使用“|”。
No "|" candidates produce the expected contextual result type...
原来是xcode 7 语法改变了。应该这样使用
https://www.zhihu.com/question/35493859
然后就对了
本文介绍了一位开发者在使用Xcode7时遇到的代码错误,并提供了如何修正该错误的具体方法。文中提及的错误是由于Xcode7的语法更新导致的,作者通过查阅资料找到了正确的解决方式。
用这篇文章的代码
http://blog.youkuaiyun.com/liuyu1114/article/details/24771717
但是报错,不能使用“|”。
No "|" candidates produce the expected contextual result type...
原来是xcode 7 语法改变了。应该这样使用
https://www.zhihu.com/question/35493859
然后就对了
386
1545

被折叠的 条评论
为什么被折叠?