Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

状态栏字体颜色怎么修改??? #62

Open
yhl714387953 opened this issue Mar 16, 2017 · 2 comments
Open

状态栏字体颜色怎么修改??? #62

yhl714387953 opened this issue Mar 16, 2017 · 2 comments

Comments

@yhl714387953
Copy link

状态栏颜色默认是黑色的,能改成别的么?APP中我设置状态栏字体是白色的

@yhl714387953
Copy link
Author

dispatch_once(&onceToken, ^{
window = [[MMPopupWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
window.rootViewController = [[MMRootViewController alloc] init];
});

我是这样修改的,自定义一个根控制器

@yhl714387953
Copy link
Author

-(UIStatusBarStyle)preferredStatusBarStyle{

return UIStatusBarStyleLightContent;

}

在跟控制器内修改颜色

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

No branches or pull requests

1 participant