[_informationTextField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
- (void)textFieldDidChange:(UITextField *)textField
{
if (textField == _informationTextField)
{
if (textField.text.length > 5)
{
[self resignTextResponder];
textField.text = [textField.text substringToIndex:5];
[self showHint:@"最多只能输入5位数字" ];
}
}
}