怎麼樣把MutableArray中的最後三個字符復制到另外的MutableArray中?
MutableArray1:(
"22.298166 , 73.165809",
"22.300598 , 73.167183",
"22.298101 , 73.166188",
"22.298128 , 73.166194"
"22.298130 , 73.166194"
)
O(∩_∩)O謝謝
用NSArray的subarrayWithRange:
NSRange range = NSMakeRange([mutableArray1 count] - 3, 3);
NSMutableArray *mutableArray2 = [NSMutableArray arrayWithArray:
[mutableArray1 subarrayWithRange:range]];