I am new to the iPhone. I’m creating an application. For that I want to send friends an invitation from my app to a Facebook profile. My Facebook friends are listed in a TableView.
I want to select 40 fiends at a time and send invitation to friends’ wall.
In my app I wrote to display my friends:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Displayfriendscell";
Displayfriendscell *cell = (Displayfriendscell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[Displayfriendscell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
}
// Configure the cell...
NSString *name=[Friendsarray objectAtIndex:indexPath.row];
//NSLog(@"name is%@",friendid);
cell.nameLabel.text = name;
return cell;
}
What should I do for that? I have no idea about check marks and their workings. I just want an idea about it. Can anybody help me implement this?
What you want to implement is multiple row selection. Look at these links
Is it possible to configure a UITableView to allow multiple-selection?
Select multiple rows in UITableview