Jordan H
Jordan H

Reputation: 55845

Prevent Action button UIActivityViewController changing status bar text color

I've implemented an Action (Share) button in a toolbar of my application. Upon tapping it, the action sheet - UIActivityViewController - pops up as expected, but it changes my previously black status bar text to white automatically. How do I prevent that so that it remains black? Thanks!

UIActivityViewController *controller = [[UIActivityViewController alloc] initWithActivityItems:@[self.pasteboardField.text] applicationActivities:nil];
[self presentViewController:controller animated:YES completion:nil];

enter image description here

enter image description here

Upvotes: 1

Views: 1036

Answers (1)

james075
james075

Reputation: 1278

set this line into your info.plist file:

View controller-based status bar appearance to NO

enter image description here

Upvotes: 1

Related Questions