When I\'m using a UIActivityViewController
, after the user chooses an activity (such as Mail or Message), I can not change the text color for the status bar nor
I found a solution to change the text color of the Send and Cancel buttons.
Check my answer from here.
Regarding changing the status bar style from black to white, I've tried pretty much everything that is on Stackoverflow and nothing worked. There seems to be no workaround it.
One thing that might work, but I don't really know how to use it, could be changing the status bar style in the child view controller. There's a Stackoverflow post about it here.
This might work only if the assumption that the MFMailComposerViewController
and MFMessageComposeViewController
are child view controllers of UIActivityViewController
and therefore if we specify the status bar style for the UIActivityViewController
then the child view controllers should have the same status bar style as the parent.
There's a method in the UIViewController
called childViewControllerForStatusBarStyle
. Here is the Apple documentation for it .
But I don't really know how to use that. Did anyone figure this out?