Ich versuche herauszufinden, Pro und Kontra in unter zwei. Beides funktioniert gut.UITableViewCell anpassen
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath: (NSIndexPath *)indexPath
{
UITableViewCell *tableViewCell = nil;
MyChildUITableViewCell *childTableViewCell =
(MyChildUITableViewCell*)[tableView dequeueReusableCellWithIdentifier:@"MyChildUITableViewCell"];
tableViewCell = childTableViewCell;
return tableViewCell;
}
ODER
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
MyChildUITableViewCell *childTableViewCell = nil;
childTableViewCell = (MyChildUITableViewCell*)
[tableView dequeueReusableCellWithIdentifier:@"MyChildUITableViewCell"];
return childTableViewCell;
}
Was hat der Fragetitel mit dem Code zu tun? – Shubhank