My problem: I use IOS 5 and prototype cells. In 'cellForRowAtIndexPath' function I set up my cell like that:
cell = [aTableView dequeueReusableCellWithIdentifier:@"datiInvioCell"];
UITextField *testo = (UITextField*)[cell viewWithTag:1];
testo.placeholder = iv.descrizione;
testo.text = iv.valore;
Now, I must store the result of the cell editing into an array. I used to do it like that:
-(void) textFieldDidEndEditing:(UITextField *)textField {
InputInvio *iv = [self.cellDettagli objectAtIndex:textField.tag];
iv.valore = textField.text;
}
but I can't use textField.tag anymore! Any idea? Thanks.