array of UIImageView in objective c

nouf

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??

Jamal Zafar

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Objective C: How to convert CGImageRef to UIImageView?

From Dev

Objective C - Cannot zoom UIImageView that is embedded into UIScrollView

From Dev

Objective C : Array

From Dev

IOS Objective C load a PNG file with transparent background to a UIImageView

From Dev

using an array objective C / iOS

From Dev

An array of UIImageViews in objective-c

From Dev

accessing inherited array in Objective C

From Dev

Objective-C array issues

From Dev

Objective C: Array with size repopulate

From Dev

Objective C Updating Objects In Array

From Dev

MultiDimensional UILabel Array in Objective C

From Dev

Reading a file into array with mutable array in Objective C

From Dev

Pass C array to a objective C method

From Dev

Objective-C. Property for C array

From Dev

Array element cannot be bridged to Objective-C

From Dev

Returning float array in Objective-C

From Dev

Objective-C PFQuery for string contained in an array?

From Dev

How to make an array of numbers? (Objective-C)

From Dev

parse JSON string into array of objects Objective C

From Dev

Properties of objects on array (Objective-c)

From Dev

Objective-C Update Array of objects

From Dev

Can you store functions in an array in Objective C?

From Dev

Concatenate String in Array of Integers in Objective C

From Dev

Objective-C Array allocation using @[] and initWithObjects

From Dev

Duplicating last object in array and then updating objective C

From Dev

Parse PFQuery to array objective-c

From Dev

Objective C Message Argument Array Parsing (AJNMessageArgument)

From Dev

finding the maximum date from an array in objective c

From Dev

Literal array notation in Objective-C

Related Related

HotTag

Archive