I am trying to make a table cell that when tapped calls a phone number and I think the code I must use is;
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:thenumber"]];
But what happens is that the call gets placed automatically, as soon as the app is opened and therefore I think the problem is the location of the code.
Where does it need to be placed in order to achieve the desired cell functionality?