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 "KBRegistVerEmailVC.h"
#import "KBWebViewViewController.h"
@interface KBEmailRegistVC () <UITextViewDelegate, UITextFieldDelegate>
@@ -393,10 +394,10 @@
BOOL hitTerms = (termsRange.location != NSNotFound && NSLocationInRange(charIndex, termsRange));
BOOL hitPrivacy = (privacyRange.location != NSNotFound && NSLocationInRange(charIndex, privacyRange));
if (hitTerms || hitPrivacy) {
KBLOG(@"tap policy in KBEmailRegistVC");
//
[KBHUD showInfo:KBLocalized(@"Open agreement")];
if (hitTerms) {
[KBWebViewViewController presentLegalDocumentType:KBLegalDocumentTypeTermsOfService fromViewController:self];
} else if (hitPrivacy) {
[KBWebViewViewController presentLegalDocumentType:KBLegalDocumentTypePrivacyPolicy fromViewController:self];
}
}