Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. NSError *error = nil;
  2. // assign the cmh url from user prefs
  3. NSURL *url = [NSURL URLWithString:cmhUrl];
  4.  
  5. // Put that URL into an NSURLRequest
  6. NSURLRequest *req = [NSURLRequest requestWithURL:url];
  7.  
  8. [req setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData];
  9.  
  10. // Create a connection that will exchange this request for data from the URL
  11. connection = [[NSURLConnection alloc] initWithRequest:req
  12. delegate:self
  13. startImmediately:YES];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement