ios 怎么把状态栏和导航栏的字变白色
1个回答
展开全部
状态栏的话,你把导航栏的风格设成黑的,即可
self.navigationController.navigationBar.barStyle = UIBarStyleBlack;
导航栏字体设为白色
[self.navigationController.navigationBar setTintColor:[UIColor whiteColor]]; [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
self.navigationController.navigationBar.barStyle = UIBarStyleBlack;
导航栏字体设为白色
[self.navigationController.navigationBar setTintColor:[UIColor whiteColor]]; [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询