Così ho registrano mia cella:stile UITableViewCell e dequeueReusableCellWithIdentifier
[self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"Cell"];
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
// setting up the cell
}
Il problema è che non posso impostare la proprietà cell.detailTextLabel.text
. La cella non è mai nil
.
Qualche messaggio di errore? Stai usando IB o storyboard? –
Nessun errore. Solo nessun testo nella tag di testo dettagliata. – Padin215