gpt4 book ai didi

iphone - 标记来电和短信

转载 作者:行者123 更新时间:2023-11-29 04:47:04 24 4
gpt4 key购买 nike

我试图在使用我的应用程序时标记每次来电或短信到达的时间。这是出于文档目的,因为我的应用程序涉及汽车安全。

有什么办法可以跟踪这个吗?我只需要知道何时有电话/短信进来,不需要任何其他数据。

最佳答案

是的,当发生此类中断时,AppDelegate 中的此方法会被调用

- (void)applicationWillResignActive:(UIApplication *)application
{
/*
Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
*/
}

关于iphone - 标记来电和短信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9479901/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com