Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 正在从NSMutableArray获取范围介于2到7或3到数组末尾之间的数据_Iphone_Objective C - Fatal编程技术网

Iphone 正在从NSMutableArray获取范围介于2到7或3到数组末尾之间的数据

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

我在NSMutableArray中添加了10个值

现在,我需要在我的表视图中显示从5到数组末尾的数据

请帮帮我

提前感谢。

试试这个:

[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对该数组进行索引。