Hello community, i have a problem. I have implemented an UITextField that contains a phonenumber, then i have implemented the following method to call the phone number:
- (void)rufeAn{
NSString *prefix = (@"tel://");
UIApplication *app = [UIApplication sharedApplication];
NSString *dialThis = [NSString stringWithFormat:@"%@%@", prefix, map.kordinate.telefon];
NSURL *url = [NSURL URLWithString:dialThis];
[app openURL:url];
}
But how can i say to the textField when i touch on it, to start the method and dial?
my greetings to all helpers!