When an autorelease string is assigned to an IBOutlet property, Is it getting retained. Like lets say I have an property
@property(nonatomic, retain) IBOutlet UILabel *lblName;
Now in my viewWillAppear
I assign lblName
a string as:
lblName = [NSString stringWithFormat: @"NameString"];
So what is the retain count for this string, do I need to make sure I assign lblName = nil;
before assining it a new string everytime view is being added or viewWillAppear
is invoked.
Also another question is about UIImageView
@property(nonatomic, retain) IBOutlet UIImageView *imgView;
Now when I use animation as
NSMutableArray *imageArray = [[NSMutableArray alloc] init];
//some images are added to imageArray
imgView.animationImages = imageArray //NSMutableArray of autoreleased images.
[imageArray release];
are the images in that array are retained or is this array is being retained, since imgView
is having a retain property.