UIView *bar = [[UIApplication sharedApplication] valueForKey:@"statusBar"];
bar.backgroundColor = [UIColor clearColor];
UIView *view = [UIView new];
view.backgroundColor = [UIColor redColor];
view.frame = bar.bounds;
[bar addSubview: view];
网友评论