I created an array of some records and want to make phone call facility when selecting any cell..like 8904490035
-(void)viewDidLoad {
arryAppleProducts = [[NSArray alloc] initWithObjects:@"8904490035",@"iPod",@"MacBook",@"MacBook Pro",nil];
arryAdobeSoftwares = [[NSArray alloc] initWithObjects:@"Flex",@"AIR",@"Flash",@"Photoshop",nil];
arryAdobeSoftwares1 = [[NSArray alloc] initWithObjects:@"one",@"two",@"three",@"four",nil];
self.title = @"Simple Table Exmaple";
[super viewDidLoad];
}
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NextViewController *nextController = [[NextViewController alloc] initWithNibName:@"NextView" bundle:nil];
[self.navigationController pushViewController:nextController animated:YES];
if(indexPath.section == 0)
[nextController changeProductText:[arryAppleProducts objectAtIndex:indexPath.row]];
else if(indexPath.section==1)
[nextController changeProductText:[arryAdobeSoftwares objectAtIndex:indexPath.row]];
else
[nextController changeProductText:[arryAdobeSoftwares1 objectAtIndex:indexPath.row]];
}