问题
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