So I have my .h and .m files, respectively:
I also have the nib file, views are connected, and the UIWebView controller is connected to ThisWebView.
When I run the app, I tap on the row of the table that this is associated with and it freezes. I get TERMINATION DUE TO UNCAUGHT EXCEPTION on thread 1. and semaphore wait signal trap on thread 2.
Does anyone know what this means or knows how to fix it?
Code:
#import <Foundation/Foundation.h>
@interface ThisController : UIViewController {
IBOutlet UIWebView *ThisWebView;
}
@property (nonatomic, retain) UIWebView *ThisWebView;
@end
Code:
#import "ThisController.h"
@implementation ThisController
@synthesize ThisWebView;
- (void)viewDidLoad {
[super viewDidLoad];
NSString *urlAddress = @"http://www.google.com";
//Create a URL object.
NSURL *url = [NSURL URLWithString:urlAddress];
//URL Requst Object
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
//Load the request in the UIWebView.
[ThisWebView loadRequest:requestObj];
}
- (void)dealloc {
[ThisWebView release];
[super dealloc];
}
@end
I also have the nib file, views are connected, and the UIWebView controller is connected to ThisWebView.
When I run the app, I tap on the row of the table that this is associated with and it freezes. I get TERMINATION DUE TO UNCAUGHT EXCEPTION on thread 1. and semaphore wait signal trap on thread 2.
Does anyone know what this means or knows how to fix it?