I am trying to get a custom url scheme to open a url inside the application. So the url scheme would be "example://confirm?1234" which I would like to use the query string as part of a url for a UIWebView. So that would make the UIWebView open "http://www.example.com/confirm?1234". This is being done in the AppDelegate so I am also having an issue controlling the FirstViewController UIWebView. Any help would be loved.
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
NSLog(@"String: %@", [url query]);
NSString *web = @"http://www.example.com/confirm?[url query]";
NSURL *url = [NSURL URLWithString:web];
NSURLRequest *requestUrl = [NSURLRequest requestWithURL:url];
[webView loadRequest:requestUrl];
}