1
This commit is contained in:
@@ -39,8 +39,8 @@
|
||||
self.tableView.tableHeaderView = header;
|
||||
[self.view addSubview:self.tableView];
|
||||
|
||||
// 数据
|
||||
self.items = @[ KBLocalized(@"home_item_lang_test") ];
|
||||
// 数据(第一个:语言测试;第二个:键盘权限引导)
|
||||
self.items = @[ KBLocalized(@"home_item_lang_test"), KBLocalized(@"home_item_keyboard_permission") ];
|
||||
|
||||
// 首次进入,聚焦到输入框方便测试键盘
|
||||
dispatch_async(dispatch_get_main_queue(), ^{ [self.textView becomeFirstResponder]; });
|
||||
@@ -56,7 +56,7 @@
|
||||
// 刷新本页涉及的多语言文案
|
||||
self.title = KBLocalized(@"home_title");
|
||||
// 重建 items 以更新本地化的 cell 标题
|
||||
self.items = @[ KBLocalized(@"home_item_lang_test") ];
|
||||
self.items = @[ KBLocalized(@"home_item_lang_test"), KBLocalized(@"home_item_keyboard_permission") ];
|
||||
[self.tableView reloadData];
|
||||
}
|
||||
|
||||
@@ -87,6 +87,10 @@
|
||||
// 多语言测试页
|
||||
KBLangTestVC *vc = [KBLangTestVC new];
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
} else if (indexPath.row == 1) {
|
||||
// 键盘权限引导页
|
||||
KBGuideVC *vc = [KBGuideVC new];
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user