Guest User

Untitled

a guest
Apr 19th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. - (void)download: (NSURLDownload *)download didReceiveAuthenticationChallenge: (NSURLAuthenticationChallenge *)challenge
  2. {
  3. NSURLCredential *newCredential = [NSURLCredential credentialWithUser:@"user" password:@"pass" persistence:NSURLCredentialPersistenceNone];
  4. [[challenge sender] useCredential:newCredential forAuthenticationChallenge:challenge];
  5. }
Add Comment
Please, Sign In to add comment