I need to know is there a way to call a phone number along with passing a image to display.... also if i could get the call duration, or set some notification for particular time....
One way is to call using
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://123456789"]];
but then my application would go i开发者_JAVA技巧n backgound , how to i call my application after phone call end...
What you are asking is almost not possible.
Im saying allmost because it might be posibbole to
- add a temporary contact to the address book with the phone number you want.
- set its image to the image you want.
- paste the call with the method you wrote.
but still there are 2 problems.
- you will have somehow to delete the contact afterwords.
- you can not do the things you asked from the background. and you can not do nothing when a call is active.
精彩评论