Skip to content

Commit a919d6c

Browse files
committed
换图
1 parent 7a350b7 commit a919d6c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Coding_iOS/Ease_2FA/Views/Cell/OTPTableViewCell.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ - (void)updateUI{
138138
}];
139139
}
140140
if (!_clockView) {
141-
_clockView = [[OTPAuthClock alloc] initWithFrame:CGRectMake(0, 0, 30, 30) period:[TOTPGenerator defaultPeriod]];
142-
[_clockView setCenter:CGPointMake(CGRectGetWidth(self.contentView.frame) - 30, CGRectGetHeight(self.contentView.frame) - 30)];
141+
CGFloat clockWidth = 25.f;
142+
_clockView = [[OTPAuthClock alloc] initWithFrame:CGRectMake(0, 0, clockWidth, clockWidth) period:[TOTPGenerator defaultPeriod]];
143+
[_clockView setCenter:CGPointMake(CGRectGetWidth(self.contentView.frame) - clockWidth, CGRectGetHeight(self.contentView.frame) - clockWidth)];
143144
[self.contentView addSubview:_clockView];
144145
}
145146
self.back_passwordLabel.text = self.passwordLabel.text;

0 commit comments

Comments
 (0)