Explorar o código

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

Felix Paul Kühne %!s(int64=9) %!d(string=hai) anos
pai
achega
c318629f26
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 }