UIWindow * window = [UIApplication sharedApplication].windows[0];
UIView *backgroundView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT)];
backgroundView.backgroundColor = BACKGROUND_GRAY;
[window addSubview:backgroundView];
时间: 2024-10-03 05:19:45