WebView works in other apps, but not another?
WebView works in other apps, but not another?
- Subject: WebView works in other apps, but not another?
- From: Kelly McGuire <email@hidden>
- Date: Fri, 24 Jun 2011 22:48:47 +0000 (GMT)
Hello,
I have been banging my head against a wall on this issue for a while and I am getting no where.
I have several apps that use WebView successfully to display dynamic web pages inside an app. I am using the same code to do the same in a smaller and less complicated app. The difference, that I can tell, is the url is hard coded.
This works and I can see the initURL value in NSLog when the app reaches that point, however nothing happens, no error, no odd behavior ... nothing. I am not sure what I broke?
- (id)initWithURLPassed:(NSString *)initURL {
if (self = [super init]) {
if([initURL isEqualToString:@""]){
[self openURL:[NSURL URLWithString:@"http://www.google.com"]];
self.hidesBottomBarWhenPushed = YES;
} else{
// Not running these 2 lines below at the same time, but either one or the other
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:initURL]]; // This works but not inside the app.
[self openURL:[NSURL URLWithString:initURL]]; // This does nothing, but works fine in other apps?
NSLog(@"string URL %@ ",initURL); // I can see this in the log?
self.hidesBottomBarWhenPushed = YES;
}
}
return self;
}
Any help is appreciated.
Kelly
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden