1
This commit is contained in:
@@ -52,7 +52,10 @@ static NSString * const kKBKeyboardExtensionBundleId = @"com.loveKey.nyx.CustomK
|
|||||||
/// 获取网络权限
|
/// 获取网络权限
|
||||||
[self getNetJudge];
|
[self getNetJudge];
|
||||||
/// 触发一次简单网络请求,用于拉起系统的蜂窝数据权限弹窗
|
/// 触发一次简单网络请求,用于拉起系统的蜂窝数据权限弹窗
|
||||||
[self kb_fireStartupNetworkRequest];
|
// dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||||
|
[self kb_fireStartupNetworkRequest];
|
||||||
|
// });
|
||||||
|
//
|
||||||
|
|
||||||
#if !DEBUG
|
#if !DEBUG
|
||||||
/// Bugly
|
/// Bugly
|
||||||
|
|||||||
@@ -67,6 +67,13 @@ typedef NS_ENUM(NSInteger, KBSexOption) {
|
|||||||
|
|
||||||
// 默认选中 Male
|
// 默认选中 Male
|
||||||
[self kb_updateSelection:KBSexOptionMale];
|
[self kb_updateSelection:KBSexOptionMale];
|
||||||
|
|
||||||
|
|
||||||
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||||
|
[[KBNetworkManager shared] GET:KB_API_APP_CONFIG parameters:nil headers:nil completion:^(id _Nullable jsonOrData, NSURLResponse * _Nullable response, NSError * _Nullable error) {
|
||||||
|
NSLog(@"====");
|
||||||
|
}];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)viewDidLayoutSubviews {
|
- (void)viewDidLayoutSubviews {
|
||||||
|
|||||||
@@ -41,17 +41,17 @@
|
|||||||
|
|
||||||
- (void)viewDidLoad {
|
- (void)viewDidLoad {
|
||||||
[super viewDidLoad];
|
[super viewDidLoad];
|
||||||
self.title = KBLocalized(@"皮肤中心");
|
// self.title = KBLocalized(@"皮肤中心");
|
||||||
self.view.backgroundColor = [UIColor whiteColor];
|
self.view.backgroundColor = [UIColor whiteColor];
|
||||||
// 绝对 URL 的测试皮肤图片(无需 KB_BASE_URL)。
|
// 绝对 URL 的测试皮肤图片(无需 KB_BASE_URL)。
|
||||||
// 说明:使用 picsum.photos 的固定 id,稳定可直接访问。
|
// 调整为较小尺寸,避免下载与存储过大(手机上预览已足够清晰)。
|
||||||
self.skins = @[
|
self.skins = @[
|
||||||
@{ @"id": @"aurora", @"name": KBLocalized(@"极光"), @"img": @"https://picsum.photos/id/1018/1600/900.jpg" },
|
@{ @"id": @"aurora", @"name": KBLocalized(@"极光"), @"img": @"https://picsum.photos/id/1018/800/450.jpg" },
|
||||||
@{ @"id": @"alps", @"name": KBLocalized(@"雪山"), @"img": @"https://picsum.photos/id/1016/1600/900.jpg" },
|
@{ @"id": @"alps", @"name": KBLocalized(@"雪山"), @"img": @"https://picsum.photos/id/1016/800/450.jpg" },
|
||||||
@{ @"id": @"lake", @"name": KBLocalized(@"湖面"), @"img": @"https://picsum.photos/id/1039/1600/900.jpg" },
|
@{ @"id": @"lake", @"name": KBLocalized(@"湖面"), @"img": @"https://picsum.photos/id/1039/800/450.jpg" },
|
||||||
];
|
];
|
||||||
|
|
||||||
self.tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStyleInsetGrouped];
|
self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, KB_NAV_TOTAL_HEIGHT, KB_SCREEN_WIDTH, KB_SCREEN_HEIGHT - KB_NAV_TOTAL_HEIGHT) style:UITableViewStyleInsetGrouped];
|
||||||
self.tableView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
self.tableView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
||||||
self.tableView.delegate = self; self.tableView.dataSource = self;
|
self.tableView.delegate = self; self.tableView.dataSource = self;
|
||||||
[self.view addSubview:self.tableView];
|
[self.view addSubview:self.tableView];
|
||||||
|
|||||||
Reference in New Issue
Block a user