extension添加提示

This commit is contained in:
2025-10-31 15:08:30 +08:00
parent eb0d3aaa71
commit 59d04bb33c
6 changed files with 74 additions and 36 deletions

View File

@@ -31,6 +31,8 @@ static CGFloat KEYBOARDHEIGHT = 256 + 20;
- (void)viewDidLoad {
[super viewDidLoad];
[self setupUI];
// HUD App KeyWindow
[KBHUD setContainerView:self.view];
}

View File

@@ -18,6 +18,7 @@
// 公共配置
#import "KBConfig.h"
#import "Masonry.h"
#import "KBHUD.h" // 复用 App 内的 HUD 封装
// 通用链接Universal Links统一配置
// 配置好 AASA 与 Associated Domains 后,只需修改这里即可切换域名/path。

View File

@@ -164,6 +164,10 @@ static NSString * const kKBFunctionTagCellId = @"KBFunctionTagCellId";
// UL App Scheme访
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
[KBHUD showInfo:@"处理中…"];
// return;
UIInputViewController *ivc = [self findInputViewController];
if (!ivc) return;
@@ -181,6 +185,7 @@ static NSString * const kKBFunctionTagCellId = @"KBFunctionTagCellId";
[ivc.extensionContext openURL:scheme completionHandler:^(BOOL ok2) {
if (!ok2) {
// 访宿
// [KBHUD showWithStatus:@"点击测试"];
dispatch_async(dispatch_get_main_queue(), ^{ [KBFullAccessGuideView showInView:self]; });
}
}];