Skip to content

Instantly share code, notes, and snippets.

@Koze
Last active November 19, 2017 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Koze/aadcaf9a3e65c9655a6c4589a36ac35b to your computer and use it in GitHub Desktop.
Save Koze/aadcaf9a3e65c9655a6c4589a36ac35b to your computer and use it in GitHub Desktop.
Change the status bar to white when MFMailComposeViewController is launched from UIActivityViewController on iOS 11.
@implementation MFMailComposeViewController (XXAppearance)
// called when UIViewControllerBasedStatusBarAppearance = YES
- (UIStatusBarStyle)preferredStatusBarStyle
{
return UIStatusBarStyleLightContent;
}
// called when UIViewControllerBasedStatusBarAppearance = YES
- (UIViewController *)childViewControllerForStatusBarStyle
{
return nil;
}
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment