
- (BOol)application:(UIApplication *)application willContinueUserActivityWithType:(nonnull Nsstring *)userActivityType {}- (BOol)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull voID (^)(NSArray * _Nullable))restorationHandler {} 这两种方法都没有被调用,因此我无法处理NSUserActivity INStartAudioCallintent.我错过了iOS 11中明显改变的东西吗?
提前致谢.
解决方法 验证remoteHandle和supportedHandleTypes,两者都应该符合您的要求.callUpdate.remoteHandle = [[CXHandle alloc] initWithType:CXHandleTypeGeneric value:[Nsstring stringWithFormat:@"%@",phoneno]];
configuration.supportedHandleTypes = [NSSet setWithObjects:[NSNumber numberWithInteger:CXHandleTypeGeneric],[NSNumber numberWithInteger:CXHandleTypePhoneNumber],nil];
如果句柄不匹配,则无法处理NSUserActivity.
总结以上是内存溢出为你收集整理的application:continueUserActivity:restorationHandler:在iOS 11中未调用全部内容,希望文章能够帮你解决application:continueUserActivity:restorationHandler:在iOS 11中未调用所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)