Quote:
Originally Posted by longst
if someone has idea that how I could relaunch application after "call disconnected" state...
Thank you
|
Use WebView to detect the call schema
NSURL *url= [NSURL URLWithString:@"tel:+919886820824"];
NSString *osVersion = [[UIDevice currentDevice] systemVersion];
if ([osVersion floatValue] >= 3.1) {
UIWebView *webview = [[UIWebView alloc] initWithFrame:[UIScreen mainScreen].applicationFrame];
[webview loadRequest:[NSURLRequest requestWithURL:url]];
// Assume we are in a view controller and have access to self.view
[self.view addSubview:webview];
[webview release];
}
else {
// On 3.0 and below, dial as usual
[[UIApplication sharedApplication] openURL: url];
}