Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *url=[NSString stringWithFormat:@"http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=MECARD:ORG%@CN%@%@CTEL%@CADR%@%@%@%@%@CEMAIL%@",[d valueForKey:@"QR Business Name"],[d valueForKey:@"QR First Name"],[d valueForKey:@"QR Last Name"],[d valueForKey:@"QR Phone"],[d valueForKey:@"QR Physical Address"],[d valueForKey:@"QR Physical City"],[d valueForKey:@"QR Physical State"],[d valueForKey:@"QR Physical Zip"],[d valueForKey:@"QR Physical Zip Plus 4"],[d valueForKey:@"QR Website"]];
- url=[url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
- //Create a URL object.
- NSURL *Curl=[NSURL URLWithString:url];
- //URL Requst Object
- NSURLRequest *request = [NSURLRequest requestWithURL:Curl];
- //Load the request in the UIWebView.
- [webView loadRequest:request];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement