Как установить стиль TableView для "UITableViewCellStyleSubtitle" - PullRequest
1 голос
/ 07 декабря 2009

как установить стиль TableView в "UITableViewCellStyleSubtitle". так что я могу использовать его для отображения в качестве дополнительного заголовка в UITABLE

1 Ответ

0 голосов
/ 07 декабря 2009

Это не стиль UITableView, а UITableViewCell:

- (UITableViewCell *)tableView:(UITableView *)tableView1 cellForRowAtIndexPath:(NSIndexPath *)indexPath {

    static NSString *CellIdentifier = @"Cell";

    UITableViewCell *cell = [tableView1 dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
    }
    ... more stuff

    return cell;
}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...