Add array protectioons.

This commit is contained in:
Kyle Matthew Hedden 2020-09-21 16:11:58 -04:00
parent 7c9be2e3de
commit 4986bb09a9

View File

@ -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.