textfield只出现光标不出现键盘
self.mtextField.inputView = [[UIView alloc]initWithFrame:CGRectZero];
textfield空白处键盘消失
self.mtextField.delegate = self;
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
//{
// [self.mtextField resignFirstResponder];
//
//}
//- (void)textFieldDidEndEditing:(UITextField *)textField
//{
// self.mtextField = textField;
// [textField resignFirstResponder];
//
//}
//-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
//{
//
// return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
//
//}
//- (BOOL)textFieldShouldEndEditing:(UITextField *)textField
//{
// return YES;
//}
//- (BOOL)textFieldShouldReturn:(UITextField *)textField
//{
// return YES;
//}