Skip to content

Commit 2d7287c

Browse files
author
jangsy
committed
Added 'layoutIfNeeded' when changing the title of the cancel button.
1 parent d2ef335 commit 2d7287c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎TOPasscodeViewController/TOPasscodeViewController.m‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ - (void)keypadButtonTapped
456456
[UIView performWithoutAnimation:^{
457457
if (title != nil) {
458458
[self.cancelButton setTitle:title forState:UIControlStateNormal];
459+
[self.cancelButton layoutIfNeeded];
459460
}
460461
self.cancelButton.hidden = (title == nil);
461462
}];

0 commit comments

Comments
 (0)