Search code examples
iphone-sdk-3.0didselectrowatindexpathurl-link

Opening Phone Links in didSelectRowAtIndexPath iPhone SDK


Is it possible to determine a row's detailTextLabel based on an indexPath in didSelectRowAtIndexPath?

I want to be able to open a phone link using

[[UIApplication sharedApplication] openURL:xyz] 

if the cell has the detail text label "phone".

Is this possible?

Thanks


Solution

  • [[myTableView cellForRowAtIndexPath:path].detailTextLabel.text isEqualToString:@"phone"];