Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. 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"]];
  2.  
  3. url=[url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
  4.  
  5. //Create a URL object.
  6. NSURL *Curl=[NSURL URLWithString:url];
  7. //URL Requst Object
  8. NSURLRequest *request = [NSURLRequest requestWithURL:Curl];
  9. //Load the request in the UIWebView.
  10. [webView loadRequest:request];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement