I have a `UITextField` and I want to use a regex for it. I want to use the

`- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text` 

method from `UITextFieldDelegate`.

In my XIB-file the delegate is set to File's Owner. In the .h-file the protocoll is set 
`UIViewController<UITextFieldDelegate>`

`textFieldDidEndEditing` and `textFieldDidBeginEditing` are working correct.

`shouldChangeTextInRange` isn't called, but why?

best regards