Mordicaii
Jul 2, 2009, 12:13 AM
I am trying to load a page in a UIWebView, but whenever I press the button I set to do so, I get a `EXC_BAD_ACCESS' error. What does this mean, and what can I do about it.
Oddly, here is the only code I have changed.
WebController.m
- (IBAction)goToMainPage:(id)sender {
NSURL *url = [NSURL URLWithString:@"http://www.bungie.net/forums/topics.aspx?forumID=10"];
[webView loadRequest:[NSURLRequest requestWithURL:url]];
[url release];
}
The_FloodViewController.m
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
if (interfaceOrientation == UIInterfaceOrientationPortrait) {
return YES;
}
if (interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown) {
return YES;
}
if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft) {
return YES;
}
if (interfaceOrientation == UIInterfaceOrientationLandscapeRight) {
return YES;
}
}
Thank you!
Oddly, here is the only code I have changed.
WebController.m
- (IBAction)goToMainPage:(id)sender {
NSURL *url = [NSURL URLWithString:@"http://www.bungie.net/forums/topics.aspx?forumID=10"];
[webView loadRequest:[NSURLRequest requestWithURL:url]];
[url release];
}
The_FloodViewController.m
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
if (interfaceOrientation == UIInterfaceOrientationPortrait) {
return YES;
}
if (interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown) {
return YES;
}
if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft) {
return YES;
}
if (interfaceOrientation == UIInterfaceOrientationLandscapeRight) {
return YES;
}
}
Thank you!
