Reputation: 123
The code I am using in my view controller viewDidLoad method:
NSString *path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"html"];
NSURL *url = [NSURL fileURLWithPath:path];
NSURLRequest* request = [[NSURLRequest requestWithURL:url] autorelease];
[webView loadRequest:request];
I get EXE_BAD_ACCESS
Upvotes: 1
Views: 310
Reputation: 44633
requestWithURL:
will give you an autoreleased object so you don't need to autorelease it again.
Upvotes: 2