[[[[UIApplication sharedApplication] delegate] window] addSubview:frontview];
其中,frontview就是蒙层,该view最好自定义,因为在自定View中可以添加相应事件。
另外,蒙层的frame设置成:
frontview.frame = [UIScreen mainScreen].bounds;
至于蒙层的内容,可以向frontview中addSubView。
[[[[UIApplication sharedApplication] delegate] window] addSubview:frontview];
其中,frontview就是蒙层,该view最好自定义,因为在自定View中可以添加相应事件。
另外,蒙层的frame设置成:
frontview.frame = [UIScreen mainScreen].bounds;
至于蒙层的内容,可以向frontview中addSubView。