I have a strange problem with my UITableView. I want all the cells in the table to be selected, so that if a cell is selected, the corresponding action is performed. All cells of my table are currently selected separately from the cell in row 0 (the cell located at the top of the table). This cell cannot be selected, even if it is configured to select. Any ideas?
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { tableView.allowsSelection = YES; static NSString *SettingsTableID = @"SettingsTableID"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:SettingsTableID]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier: SettingsTableID] autorelease]; } cell.textLabel.text = [tableHeadingsArray objectAtIndex:row]; cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; return cell;
}
Thank you very much.
iphone uitableview
Sabobin Dec 01 '10 at 17:12 2010-12-01 17:12
source share