Swapping elements in an NSMutableArray April 10, 2023 by Tarik exchangeObjectAtIndex:withObjectAtIndex: does exactly this.