key缺少,添加权限多语言
This commit is contained in:
@@ -45,12 +45,12 @@
|
||||
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
// self.title = KBLocalized(@"皮肤中心");
|
||||
// self.title = KBLocalized(@"Skin Center");
|
||||
self.view.backgroundColor = [UIColor whiteColor];
|
||||
self.skins = @[
|
||||
@{
|
||||
@"id": @"local本地",
|
||||
@"name": KBLocalized(@"粉色皮肤"),
|
||||
@"name": KBLocalized(@"Pink skin"),
|
||||
// 关键:zip_url 写成 bundle:// 前缀 + 文件名
|
||||
@"zip_url": @"bundle://fense.zip",
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
},
|
||||
@{
|
||||
@"id": @"remote002",
|
||||
@"name": KBLocalized(@"远程皮肤"),
|
||||
@"name": KBLocalized(@"Remote skin"),
|
||||
// 关键:zip_url 写成 bundle:// 前缀 + 文件名
|
||||
@"zip_url": @"http://gx.zhukeping.com/download/Christmas.zip",
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
|
||||
// 底部添加“恢复默认皮肤”测试按钮
|
||||
UIButton *reset = [UIButton buttonWithType:UIButtonTypeSystem];
|
||||
[reset setTitle:KBLocalized(@"恢复默认皮肤") forState:UIControlStateNormal];
|
||||
[reset setTitle:KBLocalized(@"Restore default skin") forState:UIControlStateNormal];
|
||||
reset.titleLabel.font = [UIFont systemFontOfSize:15 weight:UIFontWeightMedium];
|
||||
reset.layer.cornerRadius = 8.0;
|
||||
reset.layer.borderWidth = 1.0;
|
||||
@@ -138,14 +138,13 @@
|
||||
NSDictionary *skin = self.skins[idx];
|
||||
if (!skin) return;
|
||||
if (idx == 0) {
|
||||
// NSString *title = (indexPath.item < self.dataSource.count) ? self.dataSource[indexPath.item] : KBLocalized(@"专属皮肤002");
|
||||
// 将需求固定到 002.zip,本地写死皮肤 id,便于键盘扩展识别并解压。
|
||||
static NSString * const kKBBundleSkinId002 = @"bundle_skin_fense";
|
||||
[KBSkinInstallBridge publishBundleSkinRequestWithId:kKBBundleSkinId002
|
||||
name:@"" ?: kKBBundleSkinId002
|
||||
zipName:@"fense.zip"
|
||||
iconShortNames:nil];
|
||||
[KBHUD showInfo:KBLocalized(@"已通知键盘解压,切换到自定义键盘即可生效")];
|
||||
[KBHUD showInfo:KBLocalized(@"Keyboard has been notified to unzip. Switch to the custom keyboard to apply.")];
|
||||
}else if (idx == 1){
|
||||
[[KBSkinService shared] applySkinWithJSON:skin
|
||||
fromViewController:self
|
||||
@@ -161,7 +160,7 @@
|
||||
name:@"" ?: kKBBundleSkinId002
|
||||
zipName:@"Christmas.zip"
|
||||
iconShortNames:nil];
|
||||
[KBHUD showInfo:KBLocalized(@"已通知键盘解压,切换到自定义键盘即可生效")];
|
||||
[KBHUD showInfo:KBLocalized(@"Keyboard has been notified to unzip. Switch to the custom keyboard to apply.")];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
self.tableView.tableHeaderView = header;
|
||||
[self.view addSubview:self.tableView];
|
||||
|
||||
self.items = @[ KBLocalized(@"home_item_lang_test"), KBLocalized(@"home_item_keyboard_permission"), KBLocalized(@"皮肤中心"), KBLocalized(@"苹果登录") ];
|
||||
self.items = @[ KBLocalized(@"home_item_lang_test"), KBLocalized(@"home_item_keyboard_permission"), KBLocalized(@"Skin Center"), KBLocalized(@"Sign in with Apple") ];
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{ [self.textView becomeFirstResponder]; });
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
- (void)viewWillAppear:(BOOL)animated{
|
||||
[super viewWillAppear:animated];
|
||||
self.title = KBLocalized(@"Test");
|
||||
self.items = @[ KBLocalized(@"home_item_lang_test"), KBLocalized(@"home_item_keyboard_permission"), KBLocalized(@"皮肤中心"), KBLocalized(@"苹果登录") ];
|
||||
self.items = @[ KBLocalized(@"home_item_lang_test"), KBLocalized(@"home_item_keyboard_permission"), KBLocalized(@"Skin Center"), KBLocalized(@"Sign in with Apple") ];
|
||||
[self.tableView reloadData];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user