I have to pass a local PDF file (documents directory) from UIWebView to other apps (iBooks, Facebook Messenger, WhatsApp, ...).
So i use UIDocumentInteractionController:
- (IBAction)shareButton:(id)sender
{
NSURL *url = [NSURL URLWithString:self.webView.request.URL.absoluteString];
self.docController = [UIDocumentInteractionController interactionControllerWithURL:url];
self.docController.delegate = self;
[self.docController presentOpenInMenuFromBarButtonItem:sender animated:YES];
}
If i select FB Messenger or WhatsApp it shows a ViewController.
How can i change the NavigationBar appearance of this VC (background image/color, button tint)? Default white translucent would be nice.
I set a NavigationBar background image in AppDelegate.
if you use this line then Just remove this line and everything works well.
As for the Status Bar Style, the simplest way would be to pass self.navigationController as the presenter, instead of self:
It may be helpful to you
Try this code:
}
}