Created
June 12, 2019 03:14
-
-
Save BoshiLee/2bc5365e248a51e48f1c08267f14a812 to your computer and use it in GitHub Desktop.
passwordupdateAlert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 網銀密碼升級 Alert 文字 | |
NSDate *fourDigisPasswordExpireDate = [@"2019/9/9" dateFromMMBShortStyleDateString]; | |
NSAttributedString *updatePasswordNotifyString = [MMBLoginModel updatePasswordNotifyWithDate:fourDigisPasswordExpireDate]; | |
if ([MMBLoginModel isFourDigiPasswordExpired:fourDigisPasswordExpireDate]) { | |
[MMBViewEngine.sharedInstance showAlert:@"網銀密碼升級" | |
attributedmessage:updatePasswordNotifyString | |
aligment:NSTextAlignmentJustified | |
actionTitles:@[@"立即升級"] callBack:^(NSInteger isConfirm) | |
{ | |
[weakSelf pushToUpdatePassword]; | |
}]; | |
} else { | |
[MMBViewEngine.sharedInstance showAlert:@"網銀密碼升級" | |
attributedmessage:updatePasswordNotifyString | |
aligment:NSTextAlignmentJustified | |
actionTitles:@[@"下次再說", @"立即升級"] callBack:^(NSInteger isConfirm) | |
{ | |
if (isConfirm) { | |
[weakSelf pushToUpdatePassword]; | |
} else { // 下次再說 | |
[weakSelf loginUserWithPassword:self.passwordInputView.text]; | |
} | |
}]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment