Add array protectioons.
This commit is contained in:
parent
7c9be2e3de
commit
4986bb09a9
@ -393,8 +393,12 @@
|
|||||||
weakSelf.buttonView.label.alpha = 0;
|
weakSelf.buttonView.label.alpha = 0;
|
||||||
weakSelf.shortViewHeight.active = NO;
|
weakSelf.shortViewHeight.active = NO;
|
||||||
} completion:^(BOOL finished) {
|
} completion:^(BOOL finished) {
|
||||||
[weakSelf.viewToLayout layoutIfNeeded];
|
typeof(self) strongSelf = weakSelf;
|
||||||
weakSelf.accessibilityElements = @[weakSelf.shortView.label];
|
if (!strongSelf) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
[strongSelf.viewToLayout layoutIfNeeded];
|
||||||
|
strongSelf.accessibilityElements = @[strongSelf.shortView.label];
|
||||||
UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, nil);
|
UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, nil);
|
||||||
[MVMCoreDispatchUtility performBlockInBackground:^{
|
[MVMCoreDispatchUtility performBlockInBackground:^{
|
||||||
// Must notify animation delegate when animating finished.
|
// Must notify animation delegate when animating finished.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user