iOS: showing an alert when getting a call?

后端 未结 4 995
无人共我
无人共我 2021-01-01 07:19

I would like a local notification to be fired when a call is received (and to show an alert) - is this possible? Can a call event get an app to launch or a notification to b

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-01 08:03

    Your application delegate will receive calls to various UIApplicationDelegate protocol methods when various events happen. One of these is the - (void)applicationWillResignActive:(UIApplication *)application method, which is called for incoming calls or text messages, but could be called for other reasons as well.

    See the UIApplicationDelegate protocol reference for more information.

提交回复
热议问题