问题
Here is a scenario: I make a call from my application .When the call ends i need to fire a event such as calling a web service .How can do with CTcallcenter in core telephony frame work ?
Thank you
回答1:
you can use Cellular Call States for this purpose
CTCallStateDialing
The call state, before connection is established, when the user initiates the call.
CTCallStateIncoming
The call state, before connection is established, when a call is incoming but not yet answered by the user.
CTCallStateConnected
The call state when the call is fully established for all parties involved.
CTCallStateDisconnected
The call state upon call termination.
来源:https://stackoverflow.com/questions/6802084/how-to-detect-incoming-and-outgoing-call-end-event-in-my-iphone-app