摘要:
经常会遇到以下情况,textField被虚拟键盘挡住的情况,解决。RootViewController.h 中:#import <UIKit/UIKit.h>@interface RootViewController : UIViewController<UITextFieldDelegate> { UITextField *textField1; UITextField *textField2; }@property (nonatomic,retain) UITextField *textField1;@property (nonatomic ,retain) UIT 阅读全文
摘要:
UITextField编辑框经常会遇到关闭虚拟键盘的情况。总结一下,一下的方法。方法一:通过触摸背景关闭虚拟键盘在RootViewController.h中,如下:@interface RootViewController : UIViewController<UITextFieldDelegate> { UITextField *nameTextField; UITextField *numberTextField;}@property (nonatomic ,retain) UITextField *nameTextField;@property (nonatomic,reta 阅读全文