Hi,
i am developing an application that needs to initiate a call, i am trying
self.number = @"18003998651";
UIApplication *app = [UIApplication sharedApplication]; NSString *num = [NSString stringWithFormat
"tel://%@", self.number]; NSString *fixNum = [num stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSURL *url = [NSURL URLWithString:fixNum]; [app openURL:url];
i have also tried it with "tel:%@" instead of @"tel://%@"
but it shows alert : url unsupported, this url wasnt loaded
could you tell me what is the problem
Secondly how can i connect my xcode to my iphone device, so that application runs directly into iphone device
thanks,
i am developing an application that needs to initiate a call, i am trying
self.number = @"18003998651";
UIApplication *app = [UIApplication sharedApplication]; NSString *num = [NSString stringWithFormat
NSURL *url = [NSURL URLWithString:fixNum]; [app openURL:url];
i have also tried it with "tel:%@" instead of @"tel://%@"
but it shows alert : url unsupported, this url wasnt loaded
could you tell me what is the problem
Secondly how can i connect my xcode to my iphone device, so that application runs directly into iphone device
thanks,