Iphone 正在从NSMutableArray获取范围介于2到7或3到数组末尾之间的数据
我在NSMutableArray中添加了10个值 现在,我需要在我的表视图中显示从5到数组末尾的数据 请帮帮我 提前感谢。试试这个:Iphone 正在从NSMutableArray获取范围介于2到7或3到数组末尾之间的数据,iphone,objective-c,Iphone,Objective C,我在NSMutableArray中添加了10个值 现在,我需要在我的表视图中显示从5到数组末尾的数据 请帮帮我 提前感谢。试试这个: [yourArray subarrayWithRange:NSMakeRange(3, [yourArray count] - 3)]; 你能帮我吗。。。。添加[yourArray ObjectSatiIndex:[NSIndexSet IndexetWithindexInRange:NSMakeRange3,yourArray.count-3];对于table
[yourArray subarrayWithRange:NSMakeRange(3, [yourArray count] - 3)];
你能帮我吗。。。。添加[yourArray ObjectSatiIndex:[NSIndexSet IndexetWithindexInRange:NSMakeRange3,yourArray.count-3];对于tableviewcell…@kiran,您需要将结果分配给数据源,不管是什么。我的NSMutableArray中有10个图像。。。。。对于TableView单元格,我执行了cell.imageView.image=[UIImage ImageName:[imageList ObjectSatiIndexes:[NSIndexSet IndexetWithindexInRange:NSMakeRange3,imageList.count-3]]@kiran,您需要通过CellForRowatineXpath:方法,使用传入的indexPath对该数组进行索引。