开发者

NSMutableArray: writing a smaller array into a larger array at a specified location?

开发者 https://www.devze.com 2023-03-20 18:56 出处:网络
NSMutableArray:writing a smaller array into a larger array at 开发者_高级运维a specified location?

NSMutableArray: writing a smaller array into a larger array at 开发者_高级运维a specified location?

Is there a method or do I need to use a for-loop?

thanks


If you read the NSMutableArray documentation, you'd see the replaceObjectsInRange:withObjectsFromArray: method.


I think you're looking for either insertObjects:atIndexes: or replaceObjectsInRange:withObjectsFromArray:. Check out the documentation for examples.

0

精彩评论

暂无评论...
验证码 换一张
取 消