Possible to hook into the phone calling functions with current iPhone SDK?

為{幸葍}努か 提交于 2019-12-25 04:35:10

问题


I've heard it mentioned elsewhere, one cannot programmatically hook into the phone call area of an iPhone using the current SDK. I'm looking to learn iPhone development and Obj C, with the end goal of creating a call timer app that runs in the background and alerts the user when a call has gone on too long.

Is it even possible to hook into methods liek that?


回答1:


No. Your app will be interrupted when the user receives a call, and your code will not be allowed to run while the user is on the call. Additionally, there are no background apps allowed for the iphone. The best you can get is push notification, but you can't create a daemon or anything like that.

This information is provided in the iPhone Application Programming Guide




回答2:


With version 4 you can now multitask to some degree.



来源:https://stackoverflow.com/questions/1518394/possible-to-hook-into-the-phone-calling-functions-with-current-iphone-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!