title: Whatsapp Image sharing not working
body: <p>My class implements the <code>UIDocumentInteractionControllerDelegate</code> and I have the following property:<code>@property (nonatomic,retain) UIDocumentInteractionController * documentInteractionController;</code></p>
  
  <pre><code>if ([[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString:@"whatsapp://app"]]) {
      UIImage     *iconImage = [UIImage imageNamed:@"bg_iPhone_5.jpg"];
      NSString    *savePath  = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/whatsAppTmp.wai"];
  
      [UIImageJPEGRepresentation(iconImage, 1.0) writeToFile:savePath atomically:YES];
      _documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath:savePath]];
      _documentInteractionController.UTI = @"net.whatsapp.image";
      _documentInteractionController.delegate = self;
      [_documentInteractionController presentOpenInMenuFromRect:CGRectMake(0, 0, 0, 0) inView:self.view animated: YES];
  }
  else {
      UIAlertView * alert = [[UIAlertView alloc] initWithTitle:@"WhatsApp not installed." message:@"Your device has no WhatsApp installed." delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
      [alert show];
  }
  </code></pre>
  
  <p>Hi I have used this code But Image sharing is not working. DocumentInteractionController launches a screen with whatsapp icon and when I click on it my app crashes.</p>