Incompatible pointer types returning 'NSArray *' from a function with result type 'xxx *'

来源:互联网 发布:长春典恒网络百度贴吧 编辑:程序博客网 时间:2024/06/14 21:32

Incompatible pointer types returning 'NSArray *' from a function with result type 'xxx *'

一个是NSArray类型,一个是xxx类型,如何能对得上呢,这时应该仔细留意前后代码,通常加上lastObject或者firstObject,

数组里面的第一对象或第一个对象。


如有不对之处,欢迎指出,感谢。

0 0