¿Cómo puedo obtener un UITableViewCell
por indexPath
? De esta manera:¿Cómo puedo obtener uitableViewCell por indexPath?
Uso el UIActionSheet
, cuando hago clic en confirmar UIButton
Quiero cambiar el texto de la celda.
El nowIndex defino como una propiedad
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
if (buttonIndex == 0)
{
NSInteger section = [nowIndex section];
NSInteger row = [nowIndex row];
NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];
formatter.dateFormat = @"yyyy-MM-dd";
if (section == 0)
{
if (row == 0)
{
}
else if (row == 1)
{
UILabel *content = (UILabel *)[[(UITableView *)[actionSheet ] cellForRowAtIndexPath:nowIndex] viewWithTag:contentTag];
content.text = [formatter stringFromDate:checkInDate.date];
}
else if (row == 2)
{
}
}
}
}
Hola David i reescribir la pregunta, ¿puedes verlo de nuevo – phpxiaoxin