Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSURLSession do completionHandler:^(NSData *JSONdata, NSURLResponse *response, NSError *error) {
- //various codes to get the JSON response....
- dispatch_async(dispatch_get_main_queue(), ^{
- currentImageOnServerString = fileName
- [self runTheFileComparison]
- });
- -(void) runTheFileComparison {
- if (downloadedImageOnDevice != currentImageOnServer) {
- [self removeFileInCalendarFolder];
- [self downloadCalendarImage];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement