当我尝试添加其他号码来调用目录扩展。它不会添加,我正在从文本文件中提取数字,并尝试使用下面的方法添加该数字以调用目录扩展名。reloadExtensionWithIdentifier不起作用
[contextIs addBlockingEntryWithNextSequentialPhoneNumber:phoneNumber];
之后,我打电话给下面的方法。
[contextIs completeRequestWithCompletionHandler:nil];
[[CXCallDirectoryManager sharedInstance] reloadExtensionWithIdentifier:@ “com.something.something.CallIDExtension” completionHandler:^(NSError *误差){ 如果(!错误=无){ 的NSLog(@ “的错误是%@”, [错误描述]); } }];
但它不是在开火。我认为reloadExtensionWithIdentifier不更新数字字典或我做错了什么...
你能发布你的完整的示例源代码或Xcode项目的地方吗?需要检查的一点是,你的扩展的包ID与你传递给' - [CXCallDirectoryManager reloadExtensionWithIdentifier:completionHandler:]' –