access call logs through iPhone [duplicate]

拟墨画扇 提交于 2019-12-21 20:15:47

问题


Is there any way to access the call logs. The number from which the call has came and the duration for how long the call lasted?

Also can we record the call in our application if our application is running in the background.

Thanks,


回答1:


Yes for iOS4, but no for iOS5.

More info here, including sample code http://iosstuff.wordpress.com/2011/08/19/accessing-iphone-call-history/

There is at least one application in iTunes (calLog), which seems to have implemented this. Maybe that's why Apple disabled it in iOS5...




回答2:


No (non of the two), not in official SDK, apple will not allow it as it sees it as a privacy breach.



来源:https://stackoverflow.com/questions/5714071/access-call-logs-through-iphone

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