I am trying to create a UIImageView but I have to make it programmatically and I have to be able to declare it with an instance variable (in the .h file or something of the sort). Here is the code for creating it; however, this does not allow me to use it in other methods.
UIImageView *airImage = [[UIImageView alloc] 
                            initWithFrame:CGRectMake(29, 7, 82, 96)];
[myScrollView addSubview:airImage];
I have looked on other people asking similar questions however none of them will allow me to create an instance variable. BTW that code is in my viewDidLoad. Thanks in advance!
 
     
     
     
    