Переглянути джерело

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
 }