Swapping elements in an NSMutableArray

2019-03-09 06:31发布

问题:

Are there any special methods to make swapping elements in an NSMutableArray easier or more direct?

回答1:

exchangeObjectAtIndex:withObjectAtIndex: does exactly this.