首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏学海无涯

    iOS26适配指南之iPadOS Menu Bar

    UIMainMenuSystem.shared // 自定义菜单 menuSystem.setBuildConfiguration(config) { builder in // UIKeyCommand let refreshCommand = UIKeyCommand(input: "R", modifierFlags: [.command], action: #selector

    42210编辑于 2025-07-01
  • 来自专栏携程技术

    干货 | 携程火车票iOS项目开发体验优化实践

    绕过了这个系统bug,完美解决了这个问题,主要流程如下: 图6 我们给自己的APP自定了快捷键 Ctrl + V,用于触发用户进行粘贴操作 : - (NSArray<UIKeyCommand { NSMutableArray *commands = [NSMutableArray arrayWithArray:a]; [commands addObject:[UIKeyCommand discoverabilityTitle:@""]]; return commands; } return @[ [UIKeyCommand findFirstResponder:(id)sender { currentFirstResponder = self;}@end//触发获取剪切板的操作如下:- (void)posteboardCommand:(UIKeyCommand

    1.5K30编辑于 2022-09-13
  • 来自专栏网罗开发

    React Native 拆包原理和实践

    UIKeyModifierCommand action: ^(__unused UIKeyCommand

    5.7K21发布于 2021-01-29
领券