This commit is contained in:
2026-03-08 21:29:10 +08:00
parent 9fb2e2e694
commit c1ace5f53e
34 changed files with 870 additions and 1930 deletions

View File

@@ -11,6 +11,7 @@
#import "KBLoginVM.h"
#import "AppDelegate.h"
#import "BaseTabBarController.h"
#import "KBWebViewViewController.h"
@interface KBEmailLoginVC () <UITextViewDelegate, UITextFieldDelegate>
//
@@ -311,8 +312,10 @@
BOOL hitTerms = (termsRange.location != NSNotFound && NSLocationInRange(charIndex, termsRange));
BOOL hitPrivacy = (privacyRange.location != NSNotFound && NSLocationInRange(charIndex, privacyRange));
if (hitTerms || hitPrivacy) {
KBLOG(@"KBEmailLoginVC tap policy");
if (hitTerms) {
[KBWebViewViewController presentLegalDocumentType:KBLegalDocumentTypeTermsOfService fromViewController:self];
} else if (hitPrivacy) {
[KBWebViewViewController presentLegalDocumentType:KBLegalDocumentTypePrivacyPolicy fromViewController:self];
}
}