realm-swift
realm-swift copied to clipboard
RLMArray insertObjects:atIndexs:
Why not offer insertObjects:atIndexs: in RLMArray.h as a public method ? I can not find a proper method to insert objects at the middle of a RLMArray instance. Write an category for this case is not a better idea.
Currently you can call -[RLMArray insertObject:atIndex:] multiple times to insert multiple objects in the middle of an array.
We can certainly consider adding -insertObjects:atIndexes: (and -replaceObjectsAtIndexes:withObjects:) for consistency with NSMutableArray. We already support -addObjects:.