这是我隐藏号码的示例代码。
- (void)openScheme:(NSString *)scheme {
NSLog(@"%@",scheme);
scheme = @"telprompt://*67+91-**********";
UIApplication *application = [UIApplication sharedApplication];
NSURL *URL = [NSURL URLWithString:scheme];
//URL = [URL URLByAppendingPathComponent:@"*"];
if ([application respondsToSelector:@selector(openURL:options:completionHandler:)]) {
[application openURL:URL options:@{}
completionHandler:^(BOOL success) {
NSLog(@"call made");
}];
} else {
BOOL success = [application openURL:URL];
NSLog(@"Open scheme failed");
}
}
它不适用于IOS 10 iPhone 5c。在设置中我需要做哪些更改?
添加 * 67 时,不会显示通话弹出窗口。当我删除它时它会起作用。