I have a UIWebView
in my ViewController
that I want to update when the UIApplicationDelegate
is passed a URL, like
myApp://?changeWebView=newstuff
I am building the new URL fine based on the data I am passing in but I can't figure out how to update my UIWebView
I have this in my AppDelegate.m
:
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
NSLog(@"Calling Application Bundle ID: %@", sourceApplication);
NSLog(@"URL scheme:%@", [url scheme]);
NSLog(@"URL query: %@", [url query]);
NSLog(@"URL hash: %@", [url fragment]);
NSURL *newURL = [NSURL URLWithString:@"URL constructed with pieces of passed URL data"];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:newURL];
//now I want to update the UIWebview defined in my ViewController.h
return YES;
}