状态栏文字颜色修改
//info.plist中添加一个字段:view controller -base status bar 设置为NO 设置状态栏文字为白色 //有动画效果 [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES]; //无动画效果 [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
状态栏自定义~
UIView *statusBarView=[[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 20)]; statusBarView.backgroundColor=[UIColor blackColor]; [YouNav.view addSubview:statusBarView]; [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:NO];
Tabbar透明
UITabBarController *tabVC = [[UITabBarController alloc] init]; //获得tabbar UITabBar *tabBar = tabVC.tabBar; //设置透明度 [tabBar setAlpha:0.8f];
待续。。。
原文:http://www.cnblogs.com/ngi8/p/4324849.html