瀏覽代碼

frosted glass view: insert effect view at the correct position in the view hierarchy

Felix Paul Kühne 9 年之前
父節點
當前提交
c318629f26
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Sources/VLCFrostedGlasView.m

+ 1 - 1
Sources/VLCFrostedGlasView.m

@@ -59,7 +59,7 @@
     _effectView = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleDark]];
     _effectView.frame = self.bounds;
     _effectView.clipsToBounds = YES;
-    [self addSubview:_effectView];
+    [self insertSubview:_effectView atIndex:0];
 #endif
 }