我有一个我放进去的NSMutableArray
东西,负责把它们整理好。现在我有这个代码可以改变两个位置:UIViews
UIScrollView
UIViews
UIView *viewToBeChanged = [views objectAtIndex:self.page];
UIView *previousView = [views objectAtIndex:previousPage];
[views removeObjectAtIndex:self.page];
[views removeObjectAtIndex:previousPage];
[views insertObject:viewToBeChanged atIndex:previousPage];
[views insertObject:previousView atIndex:self.page];
有没有更好的方法来改变NSMutableArray
另一个对象的位置?谢谢!