IOS

iOS StatusBar背景色

2018-09-19  本文已影响75人  倪大头
UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"];
if ([statusBar respondsToSelector:@selector(setBackgroundColor:)]) {
    statusBar.backgroundColor = [UIColor colorWithHexString:@"f21c70"];
}
上一篇 下一篇

猜你喜欢

热点阅读