Here's my problem. I created a UITextField.

.h file:

```
@property (strong, nonatomic) UITextField *emailTextField;

```

.m file:

```
- (void)viewDidLoad
{
  [super viewDidLoad];
  self.emailTextField.delegate=self;
  [self setTextFields:120 :@"  email" :self.emailTextField];
}

-(void)setTextFields:(float)ycoord :(NSString *)text :(UITextField *)textField
{
  CGRect frame = CGRectMake(60, ycoord, 180, 30);
  textField = [[UITextField alloc]initWithFrame:frame];
  textField.backgroundColor = [UIColor whiteColor];
  textField.placeholder = text;
  textField.font = [UIFont fontWithName:@"Baskerville" size:15];
  textField.allowsEditingTextAttributes=YES;
  textField.autocorrectionType = UITextAutocorrectionTypeNo;

  CALayer *lay = [textField layer];
  [lay setCornerRadius:5.0f];
  [self.view addSubview:textField];
}

```

The aim is to save the text that the user put in the TextField. I tried with the delegate method

```
-(void)textFieldDidEndEditing:(UITextField *)textField

```

but the method is not called (I put a NSLog to check). Could someone help?