字幕にテキストを追加するにはどうすればよいですか?現在、名前のリストを含むNSArrayがありますが、名前に字幕を追加するにはどうすればよいですか?
lodgeList = [[NSArray alloc]initWithObjects:
@"Abingdon Lodge No. 48",
@"York Lodge No. 12",
@"Alberene Lodge No. 277",
nil];
続く...
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
}
cell.textLabel.text =[lodgeList objectAtIndex:indexPath.row];
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
return cell;