i am new to iphone application development, here i have one doubt in solving memory issues of my app, i drag and drop UIWebview using IB, after that i created IBOutlet to this webview .. it is necessary to release the memory of this webiview after use…can any one help me…
in .h
IBOutlet UIWebView *webview;
in .m
- (void)viewDidLoad
{
webview.backgroundColor=[UIColor whiteColor];
NSURL *targetURL = [NSURL fileURLWithPath:[self request]];
NSURLRequest *request = [NSURLRequest requestWithURL:targetURL];
[webview loadRequest:request];
webview.opaque=YES;
webview.scalesPageToFit=YES;
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}
if it is necessary to release the memory used webview , in which place i can release it …
Thank you…
From Resource Programming Guide,
Not that the available setter method is generally a retained one. So if you are not using ARC then you need to release IBOutlets. one suitable place to release is the
deallocmethod.