I want to Disable UI interaction of iPad till the data is downloading on main thread in backend using Blocks
I m downloading the images at loading time
-(void)downLoadImageData{ 
[self ShowActivityIndicator];
[iOSNetwork getImages:ImageID andEvent:eventID  
              onCompletion:^(NSString* result,NSError* error)
{
  dispatch_async(dispatch_get_main_queue(), ^{
    if(error)
    {
       [self stopFetch:@"Error while Processing"];
    }
    else
   {
      [[UIApplication sharedApplication] beginIgnoringInteractionEvents];
       [self stopFetch:result];
    }
   });
 }];
}
-(void) stopFetch:(NSString*) result{
  [self hideActivityIndicator];
   //after downloading completed
   [[UIApplication sharedApplication] endIgnoringInteractionEvents];
 }