I have in my TableViewCell 2 TextFields.
For the 2nd TextField i need a confirm to enable a button.
I´m using this code to determine if the confirm button should be enabled, but it doesn't work:
-(BOOL)textField:(UITextField*)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
    textField = self.installDeviceCell.passWordTextFieldOutlet;
    [textField addTarget:selfaction:@selector(checkTextField:)forControlEvents:UIControlEventEditingChanged];
    return YES;
}
-(void)checkTextField:(id)sender
{
    UITextField* textField = (UITextField*)sender;
    if ([textField.text length] < 7) {
        self.installDeviceCell.installDeviceTouchUpInsideButton.enabled = NO;
    }else if ([textField.text length] > 7){
        self.installDeviceCell.installDeviceTouchUpInsideButton.enabled = YES;
    }else{
        self.installDeviceCell.installDeviceTouchUpInsideButton.enabled = YES;
    }
}
 
     
    