First of all many thanks for clicking into my question.
I have a few UIImageView and a NSMutableArray
at .h
{
IBOutlet UIImageView *img1;
IBOutlet UIImageView *img2;
IBOutlet UIImageView *img3;
NSMutable Array *aImg;
}
@property(nonatomic, retian) IBOutlet UIImageView *img1;
@property(nonatomic, retian) IBOutlet UIImageView *img2;
@property(nonatomic, retian) IBOutlet UIImageView *img3;
@property(nonatomic, retain) NSMutableArray *aImg;
at .m
-(void)viewDidLoad
{
[super viewDidLoad];
aImg = [NSMutableArray arrayWithObjects: img1, img2, img3, nil];
}
then at other functions, when I write
UIImageView *tmp1;
tmp1 = [aImg objectAtIndex:0];
it said GDB: Program loaded; and displayed some shit
0x92a1d688 <+0024> mov 0x20(%edx), %edi
Anyone could help me?