Modal status bar and navigation bar text colors from UIActivityViewControllers in iOS 7

后端 未结 6 1969
孤独总比滥情好
孤独总比滥情好 2021-01-01 16:50

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

6条回答
  •  伪装坚强ぢ
    2021-01-01 17:27

    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?

提交回复
热议问题