_textField.defaultTextFormat = myTextFormat; _textField.text = _textField.text; // нужно для обновления формата