I already had many UIImageViews.. I want to make an array of UIImageViews and assign every index with one of the UIImageViews above.. How can I do that with objective c??
Declare a NSMutableArray
NSMutableArray * imagesArray = [[NSMutableArray alloc] init];
Simply add the Pointers to ImageViews in the Array E.g: imageView1, imageView2
[imagesArray addObjects: imageView1, imageView2, nil];
Don't forget to Release the array if you are not using ARC
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments