- (void)文本框TextField的代理方法
{
// return NO to disallow editing. 是否 允许编辑
//-(BOOL)textFieldShouldBeginEditing:(UITextField *)textField
//{
//
// return NO;
//}
// became first responder 光标 切换的时候调用
//- (void)textFieldDidBeginEditing:(UITextField *)textField;
//{
// NSLog(@"%@",textField.text);
//}
// return YES to allow editing to stop and to resign first responder status. NO to disallow the editing session to end
//是否结束编辑
//- (BOOL)textFieldShouldEndEditing:(UITextField *)textField
//{
//
// return NO;
//}
//光标 切换 textfield 结束的时候调用
//- (void)textFieldDidEndEditing:(UITextField *)textField;
//{
//
// NSLog(@"%@",textField.text);
//}
// may be called if forced even if shouldEndEditing returns NO (e.g. view removed from window) or endEditing:YES called
//
// return NO to not change text NO 不允许编辑,再什么范围内 可以修改和调用
//- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{
//
// return YES;
//
//}
//是否删除 // called when clear button pressed. return NO to ignore (no notifications)
//- (BOOL)textFieldShouldClear:(UITextField *)textField{
//
// return NO;
//}
// called when 'return' key pressed. return NO to ignore.
//- (BOOL)textFieldShouldReturn:(UITextField *)textField{
//
// return NO;
//}
//
}