key缺少,添加权限多语言
This commit is contained in:
@@ -386,19 +386,17 @@
|
||||
NSUInteger charIndex = [layoutManager characterIndexForGlyphAtIndex:glyphIndex];
|
||||
|
||||
NSString *lowerFull = textView.text.lowercaseString ?: @"";
|
||||
NSRange termsRange = [lowerFull rangeOfString:@"terms of service"];
|
||||
NSRange privacyRange = [lowerFull rangeOfString:@"privacy policy"];
|
||||
NSString *termsText = [KBLocalized(@"terms of service") lowercaseString];
|
||||
NSString *privacyText = [KBLocalized(@"privacy policy") lowercaseString];
|
||||
NSRange termsRange = [lowerFull rangeOfString:termsText];
|
||||
NSRange privacyRange = [lowerFull rangeOfString:privacyText];
|
||||
|
||||
BOOL hitTerms = (termsRange.location != NSNotFound && NSLocationInRange(charIndex, termsRange));
|
||||
BOOL hitPrivacy = (privacyRange.location != NSNotFound && NSLocationInRange(charIndex, privacyRange));
|
||||
if (hitTerms || hitPrivacy) {
|
||||
KBLOG(@"tap policy in KBEmailRegistVC");
|
||||
// 后续可统一跳转到协议页
|
||||
if (hitTerms == true) {
|
||||
[KBHUD showInfo:@"hitTerms"];
|
||||
}else{
|
||||
[KBHUD showInfo:@"hitPrivacy"];
|
||||
}
|
||||
[KBHUD showInfo:KBLocalized(@"Open agreement")];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -723,9 +721,9 @@
|
||||
_agreementTextView.textContainerInset = UIEdgeInsetsZero;
|
||||
_agreementTextView.textContainer.lineFragmentPadding = 0;
|
||||
|
||||
NSString *fullText = @"By continuing, you agree to our terms of service and confirm that you have read our privacy policy";
|
||||
NSString *termsText = @"terms of service";
|
||||
NSString *privacyText = @"privacy policy";
|
||||
NSString *fullText = KBLocalized(@"By continuing, you agree to our terms of service and confirm that you have read our privacy policy");
|
||||
NSString *termsText = KBLocalized(@"terms of service");
|
||||
NSString *privacyText = KBLocalized(@"privacy policy");
|
||||
|
||||
NSMutableParagraphStyle *paragraph = [[NSMutableParagraphStyle alloc] init];
|
||||
paragraph.alignment = NSTextAlignmentCenter;
|
||||
|
||||
Reference in New Issue
Block a user