ACETelPrompt
是一个用于轻松使用telprompt机制拨打电话的帮助器。
使用telprompt机制首先会提示用户是否要拨打电话或取消。如果用户选择从显示的提示中选择拨打电话选项,则拨打电话并且完成通话后控制权将返回到应用程序。
该帮助器使用块来获取用户选择并记录电话持续时间。
[ACETelPrompt callPhoneNumber:self.phoneField.text
call:^(NSTimeInterval duration) {
NSLog(@"User made a call of %.1f seconds", duration);
} cancel:^{
NSLog(@"User cancelled the call");
}];
ACETelPrompt 可在 MIT 许可证下使用。有关更多信息,请参阅 LICENSE 文件。