IPhone : Is there any way to make phone call from iwatch

on Thursday, March 26, 2015

I am creating an iwatch app for my existing iPhone app. iPhone App has the feature to make phone call. I'm using following code to achieve that,



NSString *phoneURLString = [NSString stringWithFormat:@"telprompt:%@", escapedPhoneNumber];
NSURL *phoneURL = [NSURL URLWithString:phoneURLString];

if ([[UIApplication sharedApplication] canOpenURL:phoneURL]) {

[[UIApplication sharedApplication] openURL:phoneURL];

}


I don't know how to achieve this function in iWatch. Please give some suggestion to achieve the mentioned result.


0 comments:

Post a Comment