tags:

views:

39

answers:

1

how can i make call from my application to particular no. Give me some logic or code for performing this task...

+3  A: 

Use UIApplication's openURL: method:

[[UIApplication sharedApplication] openURL:
       [NSURL URLWithString:[NSString stringWithFormat:@"tel:%@",phoneNumber]]];
Vladimir
thx for giving code. it's working for make a call but when the call ends then the application also terminates and again I have to initialized the application why is it so ??
tech.samar
alas, is iphone os limitation - it did not support multitasking for 3rd party apps before iOS4, so application gets closed when phone calls. On iOS4 it should simply go to background I think.
Vladimir