当我使用 aUIActivityViewController时,在用户选择一个活动(例如邮件或消息)后,我无法更改状态栏的文本颜色,也无法更改取消和发送导航栏按钮的文本/色调颜色。对于条形按钮,在AppDelegate我尝试过使用:
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
什么也没有发生。但是我可以用这个设置导航栏标题:
[[UINavigationBar appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor], UITextAttributeTextColor, nil]];
我在. UIViewControllerBasedStatusBarAppearance_ 并把这条线:NOInfo.plist
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
在AppDelegate,并且根本没有改变状态栏颜色的运气。有任何想法吗?