- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
// ...
PlanetTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"PlanetCell_ID"];
return cell;
}
如果你(在這種情況下PlanetTableViewCell)創建一個自定義的UITableViewCell是可以接受返回通過返回(UITableViewCell的*)方法,該方法的對象,或者是有別的東西,我應該做的事?cellForRowAtIndexPath返回自定義單元格?
是的,我做到了,問題更新爲正確顯示UITableViewCell,謝謝。 – fuzzygoat