I have a View Controller in which I have UIwebView created in IB.
IBOutlet UIWebView *webView;
@property (nonatomic, retain) IBOutlet UIWebView *webView;
@synthesize webView;
this webView has retainCount = 2
in viewDidLoad. Why?
Thanks
I have a View Controller in which I have UIwebView created in IB.
IBOutlet UIWebView *webView;
@property (nonatomic, retain) IBOutlet UIWebView *webView;
@synthesize webView;
this webView has retainCount = 2
in viewDidLoad. Why?
Thanks
My guess would be that's because it's retained by your class in the webView property and it's retained by its superview inside the subviews array.