Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

显示提示框后状态条文字颜色不正确 #14

Open
eric0815 opened this issue Mar 27, 2018 · 18 comments
Open

显示提示框后状态条文字颜色不正确 #14

eric0815 opened this issue Mar 27, 2018 · 18 comments
Labels

Comments

@eric0815
Copy link

我在demo里的SystemStyleViewController.m文件的viewDidLoad方法中加入下列代码
self.navigationController.navigationBar.barStyle = UIBarStyleBlack;
将状态条文字改为白色,在显示提示框后状态条文字颜色被修改为黑色

@pikacode
Copy link
Owner

试了一下没有出现你说的问题?

@eric0815
Copy link
Author

不好意思,我没说明白,是在iOS9.3.1下发现这个问题的

@pikacode
Copy link
Owner

也没出现啊。。

@eric0815
Copy link
Author

您好,我把操作视频发送到您的qq邮箱了,请帮忙看一下,谢谢.

@pikacode
Copy link
Owner

@eric0815 解决了吗?

@eric0815
Copy link
Author

@pikacode 还没呢,我上回发了视频到您的邮箱,里面是出现的现象,您看到了吗

@pikacode
Copy link
Owner

下载不了,我让你加我qq你没加啊

@pikacode
Copy link
Owner

57380422

@eric0815
Copy link
Author

刚加了

@howiei
Copy link

howiei commented Jun 8, 2018

确实是有这样的问题,应用在前台收到推送,推送view展示的时候,状态栏文字颜色由之前设定的白色改为了黑色,怀疑是window的问题

@pikacode pikacode added the bug? label Oct 15, 2018
@zhuyuping
Copy link

同样的问题,请问解决了吗 iOS 9

@pikacode
Copy link
Owner

还没处理这个问题

@pikacode
Copy link
Owner

pikacode commented Nov 7, 2018

@zhuyuping @eric0815
info.Plist文件里添加下面的参数
View controller-based status bar appearance 设置成No,默认为Yes

或者
[UIApplication.sharedApplication addObserver:self forKeyPath:@"statusBarStyle" options:NSKeyValueObservingOptionNew context:nil];
监听一下状态,看能不能修改,我用 iOS 9.3的模拟器没有出现你们说的问题

@tianzheng1
Copy link

我适配ios9.3也出现了状态栏变成黑色

@tianzheng1
Copy link

我适配ios9.3也出现了状态栏变成黑色,真机

@pikacode
Copy link
Owner

我适配ios9.3也出现了状态栏变成黑色,真机

能否发我一份demo代码

@tianzheng1
Copy link

ios9.3前台接收到通知后,以下代码会运行一次变黑后,就在也不执行了。直接返回 .lightContent 也显示黑色

override var preferredStatusBarStyle: UIStatusBarStyle {
    return isBlack ? .lightContent : .default
}

@tianzheng1
Copy link

我加你QQ了,请通过一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants