title: Custom Color for Nav Bar Button and StatusBar for UIActivityViewController
body: <p>I have a UIAlertController with a style of ActionSheet. There are 2 options. When a user selects anyone of them, it displays Apple's built in UIActivityViewController. The problem I'm having is that when a user then selects the Message or Mail and others, the <strong>nav bar buttons are dark blue and the status bar is black.</strong> I want the buttons to be white and the status bar to be white. The only thing that works correctly is that the Nav Bar color is blue which I set in the app delegate.  </p>
  
  <p>The code I have in App Delegate:</p>
  
  <pre><code>func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -&gt; Bool {
  
      // Nav Bar
      UINavigationBar.appearance().translucent = false
      UINavigationBar.appearance().opaque = true
      UINavigationBar.appearance().barTintColor = primaryBlueColor
      UINavigationBar.appearance().tintColor = UIColor.whiteColor()
  
      // Status Bar
      UIApplication.sharedApplication().statusBarHidden = false
      UIApplication.sharedApplication().statusBarStyle = UIStatusBarStyle.LightContent
  }
  </code></pre>
  
  <p>When I present the UIActivityViewController, I'm able to customize the color of the "Cancel" button to a custom blue. But again, when the user presses the Message or any other options, it goes to a new screen and the colors are not correct. This is what I have:</p>
  
  <pre><code> let activityController = UIActivityViewController(activityItems: [textFile], applicationActivities: nil)
  
   self.presentViewController(activityController, animated: true, completion: nil)
  
   activityController.view.tintColor = primaryBlueColor
  </code></pre>
  
  <p><strong>EDIT TO QUESTION 1:</strong></p>
  
  <p>I just found the answer for the buttons to change to the color white. Now all that is missing is the Status Bar to turn white. This is what I added to the App Delegate method above.</p>
  
  <pre><code> UIBarButtonItem.appearanceWhenContainedInInstancesOfClasses([UINavigationBar.classForCoder()]).tintColor = UIColor.whiteColor()
  </code></pre>
  
  <p>Any suggestions for the status bar?</p>