阅读背景:

返回指针后,NSArray对象超出范围

来源:互联网 

I am attempting to use the below code in a function to return an array of dictionary objects. Unfortunately, after the return to the next function in the stack all of the rows in the mutable array have become 'out of scope'. From my understanding, the array should retain the row (dictionary) object automatically so even after the return, where the row pointer goes out of scope, the row objects should still have a retain count of 1. What am I doing wrong here? How do I build this array in such a way that the objects it contains don't get released?I am attempting to use the below code in a func




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: