NSMutableArray withObject(UIImageView *)
Posted
by pureman
on Stack Overflow
See other posts from Stack Overflow
or by pureman
Published on 2010-04-10T05:11:05Z
Indexed on
2010/04/10
5:13 UTC
Read the original article
Hit count: 342
I am trying to load an NSMutableArray with UIImageViews. Everything is going fine with that.
Unfortunately, I have no idea how to use the objects when they are in the mutable array.
Here is some code:
UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
NSMutableArray *array = [NSMutableArray new];
[array loadWithObject:(UIImageView *)imageView];
[imageView release];
That kind of sets up what I've done. Here's what I want to do:
[array objectAtIndex:5].center = GCRectMake(0, 0);
but that doesn't work. How can I do this??
© Stack Overflow or respective owner