diff --git a/MVMCoreUI/TopAlert/MVMCoreUITopAlertExpandableView.m b/MVMCoreUI/TopAlert/MVMCoreUITopAlertExpandableView.m index e0eef9d6..9a1d3099 100644 --- a/MVMCoreUI/TopAlert/MVMCoreUITopAlertExpandableView.m +++ b/MVMCoreUI/TopAlert/MVMCoreUITopAlertExpandableView.m @@ -393,8 +393,12 @@ weakSelf.buttonView.label.alpha = 0; weakSelf.shortViewHeight.active = NO; } completion:^(BOOL finished) { - [weakSelf.viewToLayout layoutIfNeeded]; - weakSelf.accessibilityElements = @[weakSelf.shortView.label]; + typeof(self) strongSelf = weakSelf; + if (!strongSelf) { + return; + } + [strongSelf.viewToLayout layoutIfNeeded]; + strongSelf.accessibilityElements = @[strongSelf.shortView.label]; UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, nil); [MVMCoreDispatchUtility performBlockInBackground:^{ // Must notify animation delegate when animating finished.