Skip to content

Commit 56679b7

Browse files
committed
TPKeyboardAvoidingTableView 键盘弹出的 bug
1 parent f047007 commit 56679b7

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Coding_iOS/Controllers/Login/CannotLoginViewController.m

+5
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ - (void)viewDidLoad
6565
}
6666
}
6767

68+
- (void)viewWillDisappear:(BOOL)animated{
69+
[super viewWillDisappear:animated];
70+
[self.view endEditing:YES];
71+
}
72+
6873
- (void)addChangeBaseURLGesture{
6974
@weakify(self);
7075
UITapGestureRecognizer *tapGR = [UITapGestureRecognizer bk_recognizerWithHandler:^(UIGestureRecognizer *sender, UIGestureRecognizerState state, CGPoint location) {

Coding_iOS/Controllers/Login/LoginViewController.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ - (void)refreshCaptchaNeeded{
152152

153153
- (void)viewWillAppear:(BOOL)animated{
154154
[super viewWillAppear:animated];
155-
[self.navigationController setNavigationBarHidden:YES animated:YES];
155+
[self.navigationController setNavigationBarHidden:YES animated:YES];
156156
}
157157

158158
- (void)viewDidAppear:(BOOL)animated{
@@ -449,7 +449,7 @@ - (IBAction)cannotLoginBtnClicked:(id)sender {
449449
}
450450

451451
- (void)goToCannotLoginWithIndex:(NSInteger)index{
452-
CannotLoginViewController *vc = [CannotLoginViewController vcWithPurposeType:(index == 0? PurposeToPasswordReset: PurposeToPasswordActivate) methodType:0 stepIndex:0 userStr:self.myLogin.email];
452+
CannotLoginViewController *vc = [CannotLoginViewController vcWithPurposeType:(index == 0? PurposeToPasswordReset: PurposeToPasswordActivate) methodType:0 stepIndex:0 userStr:(([self.myLogin.email isPhoneNo] || [self.myLogin.email isEmail])? self.myLogin.email: nil)];
453453
[self.navigationController pushViewController:vc animated:YES];
454454
}
455455

Coding_iOS/Controllers/Login/RegisterViewController.m

+5
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ - (void)viewWillAppear:(BOOL)animated{
9797
}
9898
}
9999

100+
- (void)viewWillDisappear:(BOOL)animated{
101+
[super viewWillDisappear:animated];
102+
[self.view endEditing:YES];
103+
}
104+
100105
- (EaseInputTipsView *)inputTipsView{
101106
if (!_inputTipsView) {
102107
_inputTipsView = ({

0 commit comments

Comments
 (0)