Probably its my first post here.
I have an
NSMutableArray *iconsMutableArray;
And have added some UIImageView in the NSMutableArray.
for (int i = 2; i <= 9; i++) {
UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:[NSString stringWithFormat:@"Guide-Icon-%d.png", i]]];
[iconsMutableArray addObject:imageView];
[imageView release];
}
Now i want to change the UIImage source of Nth object in the UIImageView. How can I?
I have tried several ways e.g,
[[iconsMutableArray objectAtIndex:activeItem] image] = [UIImage imageNamed:@"Guide-Icon-7_Active.png"];
Can anyone please help me?
1 Answer