Training „git“
07.10.2010 - 08.10.2010, Essen
Training „Eclipse RCP“
28.03.2011 - 01.04.2011, Dortmund

Tabellen mit UITableViewController

Objective-C: Protokolle deklarieren

Objective-C: Protokolle implementieren

Objective-C: Private Methoden

Tabellen, Tabellen-Styles

UITableView und UITableViewController

Anzahl Abschnitte / Zeilen

Abschnitte/Zelleninhalte

Beispielcode: tableView:cellForRowAtIndexPath:

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

    static NSString *CellIdentifier = @"SimpleCell";

    // Cell-Objekt aus Pool wiederverwenden
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

    // Oder neu erzeugen sofern kein Pool-Objekt vorhanden
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
                                        reuseIdentifier:CellIdentifier];
        [cell autorelease];
    }
    
    cell.textLabel.text = @"Some cell text";
    return cell;
}

Weitere Informationen

Über Ihre Kommentare und Hinweise freue ich mich sehr:
Ralf Ebert | iPhone-Entwicklung | Tabellen mit UITableViewController