From 0ef7b7d1d8023b30fe3688a7537b85a2498674e2 Mon Sep 17 00:00:00 2001 From: CodeST <694468528@qq.com> Date: Mon, 17 Nov 2025 21:08:25 +0800 Subject: [PATCH] 2 --- keyBoard/AppDelegate.m | 2 ++ keyBoard/Class/Home/VC/FunctionTest/KBLangTestVC.h | 2 +- keyBoard/Class/Home/VC/FunctionTest/KBSkinCenterVC.h | 2 +- keyBoard/Class/Home/VC/FunctionTest/KBTestVC.h | 2 +- keyBoard/Class/Home/VC/FunctionTest/KBTestVC.m | 2 +- keyBoard/Class/Me/VC/MyVC.m | 4 +++- 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/keyBoard/AppDelegate.m b/keyBoard/AppDelegate.m index e8bdaf9..8bf072a 100644 --- a/keyBoard/AppDelegate.m +++ b/keyBoard/AppDelegate.m @@ -36,6 +36,8 @@ static NSString * const kKBKeyboardExtensionBundleId = @"com.loveKey.nyx.CustomK - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // 1. 配置内购服务 [[FGIAPManager shared] setConfigureWith:[IAPVerifyTransactionObj new]]; + /// 2:配置国际化 + [KBLocalizationManager shared].supportedLanguageCodes = @[ @"en", @"zh-Hans"]; // 首次安装先进入性别选择页;点击 Skip 或确认后再进入主 TabBar BOOL hasShownSexVC = [[NSUserDefaults standardUserDefaults] boolForKey:KBSexSelectShownKey]; diff --git a/keyBoard/Class/Home/VC/FunctionTest/KBLangTestVC.h b/keyBoard/Class/Home/VC/FunctionTest/KBLangTestVC.h index 810ee13..97c1f50 100644 --- a/keyBoard/Class/Home/VC/FunctionTest/KBLangTestVC.h +++ b/keyBoard/Class/Home/VC/FunctionTest/KBLangTestVC.h @@ -7,7 +7,7 @@ NS_ASSUME_NONNULL_BEGIN -@interface KBLangTestVC : UIViewController +@interface KBLangTestVC : BaseViewController @end NS_ASSUME_NONNULL_END diff --git a/keyBoard/Class/Home/VC/FunctionTest/KBSkinCenterVC.h b/keyBoard/Class/Home/VC/FunctionTest/KBSkinCenterVC.h index 6c8ecc2..f4c70c2 100644 --- a/keyBoard/Class/Home/VC/FunctionTest/KBSkinCenterVC.h +++ b/keyBoard/Class/Home/VC/FunctionTest/KBSkinCenterVC.h @@ -5,7 +5,7 @@ #import -@interface KBSkinCenterVC : UIViewController +@interface KBSkinCenterVC : BaseViewController @end diff --git a/keyBoard/Class/Home/VC/FunctionTest/KBTestVC.h b/keyBoard/Class/Home/VC/FunctionTest/KBTestVC.h index d6e38ef..a8d8a30 100644 --- a/keyBoard/Class/Home/VC/FunctionTest/KBTestVC.h +++ b/keyBoard/Class/Home/VC/FunctionTest/KBTestVC.h @@ -9,7 +9,7 @@ NS_ASSUME_NONNULL_BEGIN -@interface KBTestVC : UIViewController +@interface KBTestVC : BaseViewController @end diff --git a/keyBoard/Class/Home/VC/FunctionTest/KBTestVC.m b/keyBoard/Class/Home/VC/FunctionTest/KBTestVC.m index 5c2f855..55cc7a6 100644 --- a/keyBoard/Class/Home/VC/FunctionTest/KBTestVC.m +++ b/keyBoard/Class/Home/VC/FunctionTest/KBTestVC.m @@ -31,7 +31,7 @@ [header addSubview:self.textView]; // 列表 - self.tableView = [[BaseTableView alloc] initWithFrame:self.view.bounds style:UITableViewStyleInsetGrouped]; + self.tableView = [[BaseTableView alloc] initWithFrame:CGRectMake(0, 60, KB_SCREEN_WIDTH, KB_SCREEN_HEIGHT - 60) style:UITableViewStyleInsetGrouped]; self.tableView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; self.tableView.delegate = self; self.tableView.dataSource = self; diff --git a/keyBoard/Class/Me/VC/MyVC.m b/keyBoard/Class/Me/VC/MyVC.m index 85991fe..e696a02 100644 --- a/keyBoard/Class/Me/VC/MyVC.m +++ b/keyBoard/Class/Me/VC/MyVC.m @@ -10,6 +10,7 @@ #import "KBSkinDetailVC.h" #import "KBMyHeaderView.h" // 顶部视图独立封装 #import "KBMyListCell.h" +#import "KBTestVC.h" @interface MyVC () @property (nonatomic, strong) BaseTableView *tableView; // 列表 @@ -92,7 +93,8 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [tableView deselectRowAtIndexPath:indexPath animated:YES]; - + KBTestVC *vc = [[KBTestVC alloc] init]; + [self.navigationController pushViewController:vc animated:true]; } #pragma mark - Lazy