Yes, you may have slashes in the parameters (this is because it is the line after the question mark starting part of the URL parameter.
As for the Mobile Safari pass for handling affiliate links:
You can configure the hidden UIWebView to handle redirects or do everything in the URL loading system yourself. This is with a hidden WebView:
NSURLRequest *r = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://click.linksynergy.com/fs-bin/click?id=sf2bW7QX/qU&offerid=146261.431296703&type=2&subid=0"]]; testWebView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 10, 10)]; testWebView.hidden = YES; testWebView.delegate = self; [testWebView loadRequest:r];
delegate:
#pragma mark - UIWebViewDelegate - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { if ([request.URL.scheme isEqualToString:@"itms"] && [[UIApplication sharedApplication] canOpenURL:request.URL]) { [[UIApplication sharedApplication] openURL:request.URL]; return NO; } return YES;
testWebView must be an instance of var, and the view controller itself must be <UIWebViewDelegate> . You also need to set the webview delegate to zero somewhere (e.g. in -dealloc )
source share