diff --git a/MZFormSheetPresentationController/MZFormSheetPresentationController.m b/MZFormSheetPresentationController/MZFormSheetPresentationController.m index 635f73c..02c0ae2 100644 --- a/MZFormSheetPresentationController/MZFormSheetPresentationController.m +++ b/MZFormSheetPresentationController/MZFormSheetPresentationController.m @@ -207,8 +207,9 @@ - (void)setupBackgroundBlurView { #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 if ([UIViewPropertyAnimator class]) { + __weak MZFormSheetPresentationController *weakSelf = self; self.propertyAnimator = [[UIViewPropertyAnimator alloc] initWithDuration:1.0 curve:UIViewAnimationCurveLinear animations:^{ - self.blurBackgroundView.effect = nil; + weakSelf.blurBackgroundView.effect = nil; }]; } #endif