2
This commit is contained in:
@@ -39,7 +39,7 @@ typedef NS_ENUM(NSInteger, KBGuideItemType) {
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
self.view.backgroundColor = [UIColor colorWithWhite:0.96 alpha:1.0];
|
||||
self.title = @"使用引导";
|
||||
// self.title = KBLocalized(@"使用引导");
|
||||
|
||||
[self.view addSubview:self.tableView];
|
||||
[self.view addSubview:self.inputBar];
|
||||
@@ -176,7 +176,7 @@ typedef NS_ENUM(NSInteger, KBGuideItemType) {
|
||||
// 1. 插入我方消息
|
||||
[self.items addObject:@{ @"type": @(KBGuideItemTypeUser), @"text": text ?: @"" }];
|
||||
// 2. 紧跟一条固定客服消息
|
||||
NSString *reply = @"🎉 如您遇到其他问题,可点击在线客服帮您解决~";
|
||||
NSString *reply = KBLocalized(@"🎉 If you run into any other issues, tap Online Support to get help~");
|
||||
[self.items addObject:@{ @"type": @(KBGuideItemTypeKF), @"text": reply }];
|
||||
|
||||
// 刷新并滚动到底部
|
||||
@@ -273,7 +273,7 @@ typedef NS_ENUM(NSInteger, KBGuideItemType) {
|
||||
self.kb_lastInputModeIdentifier = currId;
|
||||
|
||||
BOOL isMine = [currId rangeOfString:KB_KEYBOARD_EXTENSION_BUNDLE_ID].location != NSNotFound;
|
||||
[KBHUD showInfo:(isMine ? @"是自己的键盘" : @"❎不是自己的键盘")];
|
||||
[KBHUD showInfo:(isMine ? KBLocalized(@"是自己的键盘") : KBLocalized(@"❎不是自己的键盘"))];
|
||||
}
|
||||
|
||||
/// 当权限满足时,尽力激活输入框,从而触发键盘挂载与输入法检测
|
||||
@@ -368,7 +368,7 @@ typedef NS_ENUM(NSInteger, KBGuideItemType) {
|
||||
_textField.delegate = self;
|
||||
_textField.returnKeyType = UIReturnKeySend; // 回车发送
|
||||
_textField.font = [UIFont systemFontOfSize:15];
|
||||
_textField.placeholder = @"在键盘粘贴对话后,选择回复方式";
|
||||
_textField.placeholder = KBLocalized(@"After pasting the conversation in the keyboard, choose a reply style");
|
||||
_textField.backgroundColor = [UIColor whiteColor];
|
||||
_textField.layer.cornerRadius = 10; _textField.layer.masksToBounds = YES;
|
||||
UIView *pad = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 10, 36)];
|
||||
|
||||
Reference in New Issue
Block a user