hi i am new to iPhone.what i did is creating an array with images as shown below
images = [NSMutableArray alloc] initWithObjets:@"image1.jpg",@"image2.jpg",@"image3.jpg",@"image4.jpg",@"image5.jpg",@"image6.jpg",nil]
and i create a button when ever button click images are exchanged for that i am writing code as fallows in button clicked event.
[_images exchangeObjectAtIndex:2 withObjectAtIndex:4];
but images are not exchanged and i did n't get any warnings and images.i am writing array in viewDidLoad.what is the wrong.how can i exchange elements in the array. thank u in advance.