Quantcast
Viewing all articles
Browse latest Browse all 7

Answer by DOOManiac for Change color of UIDocumentInteractionController nav bar

If you put the UIDocumentInteractionController onto a UINavigationController it will automatically take the color its navbar. This is probably your root view navcontroller.

You do this with the documentInteractionControllerViewControllerForPreview method:

- (UIViewController *) documentInteractionControllerViewControllerForPreview: (UIDocumentInteractionController *) controller{    // Use the rootViewController here so that the preview is pushed onto the navbar stack    MyAppDelegate *appDelegate = (MyAppDelegate *)[[UIApplication sharedApplication] delegate];    return appDelegate.window.rootViewController;}

Viewing all articles
Browse latest Browse all 7


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>