Cómo configurar Acción para UIButton en UITableViewCell
yo tengoXIB
expedienteTimerCell.xib conUITableViewCell
. En otra clase encellForRowAtIndexPath Inicializo estoUITableViewCell
:
static NSString *CellIdentifier = @"cellTimer";
TimerCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
//cell = [[TimerCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"TimerCell"owner:self options:nil];
cell = [nib objectAtIndex:0];
En miTimerCell tengo dosUILabel
y unoUIButton
. Para este botón me gustaría configuraracción a algun metodo
¿Cómo puedo hacer eso? Y como mostrar en la primera.UILabel
¿Los datos de mi temporizador de cuenta atrás de fondo en tiempo real?