@import CoreTelephony;
@property (nonatomic, strong) CTCallCenter * center;
self.center = [[CTCallCenter alloc] init];
WeakSelf
self.center.callEventHandler = ^(CTCall * call)
{
[weakSelf pause];//TODO:检测到来电后的处理
};
iOS监听来电
最新推荐文章于 2023-12-25 18:41:46 发布