蒙版遮住全屏(包括导航栏)

  UIWindow * window = [UIApplication sharedApplication].windows[0];

   

    UIView *backgroundView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT)];

    backgroundView.backgroundColor = BACKGROUND_GRAY;

    [window addSubview:backgroundView];

 

posted @ 2017-04-01 11:02  柳仙慧子  阅读(406)  评论(0编辑  收藏  举报