-2
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
return contactName.count;
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
if (cell == nil)
{
cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"cell"];
} cell.textLabel.text = [contactName objectAtIndex:indexPath.row];
NSDictionary *number = [mobileNo objectAtIndex:indexPath.row];
cell.detailTextLabel.text = [number valueForKey:@"mobile"];
return cell;
}
-(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath{
if (editingStyle == UITableViewCellEditingStyleInsert) {
NSLog(@"Wait");
}
}
-(void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
UITableViewCell *tablecell1=[tableView cellForRowAtIndexPath:indexPath];
BOOL isselected=(tablecell1.accessoryType==UITableViewCellAccessoryCheckmark);
if (isselected) {
tablecell1.accessoryType=UITableViewCellAccessoryNone;
}else
{
tablecell1.accessoryType=UITableViewCellAccessoryCheckmark;
}
}
//done button action performs copy the contacts from phone to uitextview .
- (IBAction)done:(id)sender
{
}