views:

12

answers:

1

In my tableview, I load a custom cell from a nibFile:

        customCell = (cellReponseCircuit *) [tableView dequeueReusableCellWithIdentifier:@"cell"];

        if(!customCell)
        {
            customCell = [[[NSBundle mainBundle] loadNibNamed:@"cellReponse" owner:self options:nil]lastObject];
        }

        customCell.reponse.text = [[langue singletonLangue] mot:@"Entrer votre réponse ici"]; 

        cell = [customCell retain];

and I subClass UITableViewCell:

@interface cellReponseCircuit : UITableViewCell {

IBOutlet UITextField *reponse;
IBOutlet UISegmentedControl *segVraiFaux;

}

@property(nonatomic,retain) IBOutlet UITextField *reponse; @property(nonatomic,retain) IBOutlet UISegmentedControl *segVraiFaux;

@end

But I don't where to put UiTextFieldDelegate. Because If I put it in the cell class it don't works, and if I put I in the tableViewController it don't works.

A: 

Ok It's because the link beetween the file owners and the textfield delegate was not did in IB, now it works.

alex