How can we change the colour of a modal view controller getting opened after selecting an activity (mail, message etc.) from the UIActivityViewController
.
I have tried setting Status bar style
to UIStatusBarStyleLightContent
but it did not work. View controller-based status bar appearance
is set to NO
. My app has a number of UIViewController
s where I need the colour of the text of the status bar to be white while in some, I need it to be black and I need the colour of the status bar text to be white when activities are opened from the UIActivityViewController
. How can this be achieved?
I have tried something from here in the following manner -
[self presentViewController:activityVC animated:YES completion:^{
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
}];
but it did not work.