- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
// ...
PlanetTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"PlanetCell_ID"];
return cell;
}
If your creating a custom UITableViewCell (in this case PlanetTableViewCell) is it acceptable to return that object via a method returning (UITableViewCell *), or is there something else I should be doing?
You possibly meant:
If so, then it is perfectly legal and reasonable.
Indeed, your
PlanetTableViewCellbeing derived fromUITableViewCell, all instances ofPlanetTableViewCellare also of the typeUITableViewCell(is-a relationship in OOP).