📜  statusbarwindow.status bar 目标 c - Objective-C 代码示例

📅  最后修改于: 2022-03-11 15:04:45.244000             🧑  作者: Mango

代码示例1
UIView *statusBar = [[UIView alloc]initWithFrame:[UIApplication sharedApplication].keyWindow.windowScene.statusBarManager.statusBarFrame] ;
statusBar.backgroundColor = [UIColor whiteColor];
[[UIApplication sharedApplication].keyWindow addSubview:statusBar];