- - (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;
- }
- (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;
}