2010/01/05

編集時のアクセサリ設定。

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
 static NSString *SetCellIdentifier = @"SetCellIdentifier";
 
 UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:SetCellIdentifier];
 
 if (cell  == nil) {
  cell = [[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:SetCellIdentifier];
//ここでアクセサリと編集時のアクセサリを設定する。
  cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
  cell.editingAccessoryType = UITableViewCellAccessoryDisclosureIndicator;
 }
 
 cell.textLabel.text =[[setListArray objectAtIndex:indexPath.row] valueForKey: @"set_title"];
 return cell;
}