3D Touch 学习
看了苹果的官方demo,自己也跟着敲了一遍
ShortcutItem
此处我使用的是静态方式添加item
在info.list加入UIApplicationShortcutItems
配置完后可在AppAppDelegate.m中
- (void)application:(UIApplication *)application performActionForShortcutItem:(nonnull UIApplicationShortcutItem *)shortcutItem completionHandler:(nonnull void (^)(BOOL))completionHandler{
UIAlertController *ac = [UIAlertController alertControllerWithTitle:@"Hi" message:@
评论0
最新资源