1. UIWindowLevel
让UIView 和 UIWindow透明不遮挡下放操作的方法
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
UIView *hitView = [super hitTest:point withEvent:event];
if (hitView == self) {
return nil;
} else {
return hitView;
}
}
设置父视图的的透明度不影响子视图的人透明度的方法
_settingWindow.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.5];