定义了一个 model里面有个数组存放的是othermodel model添加列用的是 avrelation属性
现在只能能拿到数据 代码如下
AVRelation *array2=[object objectForKey:@"mainBanners"];
[[array2 query] findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
self.mainModel.mainBanners = (AVRelation*)objects;
但是我要使用 mainModel的时候,却不能把mainBanners属性当做数组来用。
或者说 avrealtion 有没有一个遍历元素的方法呢。。