Advertisement
redribben

test

Oct 31st, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. NSURLSession do completionHandler:^(NSData *JSONdata, NSURLResponse *response, NSError *error) {
  2.         //various codes to get the JSON response....
  3.        
  4.         dispatch_async(dispatch_get_main_queue(), ^{
  5.             currentImageOnServerString = fileName
  6.             [self runTheFileComparison]
  7.                 });
  8.  
  9. -(void) runTheFileComparison {
  10.     if (downloadedImageOnDevice != currentImageOnServer) {
  11.         [self removeFileInCalendarFolder];
  12.              [self downloadCalendarImage]
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement