Last active
November 19, 2017 01:41
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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