Reputation: 47
I've been trying to implement UIWebView into my application for a while now but when I do my application crashes upon startup. My code is:
-(void)viewDidLoad {
[super viewDidLoad];
NSString *urlAdress=@"http://www.facebook.com";
NSURL *url = [NSURL URLWithString:urlAdress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[webView loadRequest:requestObj];
The Debugger says Thread 1: Stopped at breakpoint 4
Upvotes: 0
Views: 2477
Reputation: 18477
Your problem is that you have breakpoints set. See the blue arrow in the narrow column immediately left of your code? You have three of them set. You can disable the break point by clicking on the blue breakpoint arrow so that it dims (disabled). You can remove the breakpoint by right clicking on the blue arrow and removing it. A second way to remove it is to click and drag the breakpoint into the main window of your code, causing it to use the same dissolve animation used on the Mac OS X dock when you remove an item from it.
Upvotes: 2