Weird discovery, when I used a drag and drop to make a new IBOutlet, as shown below, not with a @property at all:
@interface SkinChoosingView : UIViewController {
IBOutlet UIActivityIndicatorView * activityIndicator;
}
Xcode inserted a -release
and set the outlet to nil in viewDidUnload
. I looked in viewDidLoad though, and no -retain
was there! This went against everything I know about memory management.
I figure apple must know a thing or two about this stuff though, so is there something behind the scenes happening here? I have never had leaks from these types of IBOutlets, and I've never released them.