摘要:方法一:在button按钮的点击事件中加上[self.textFiled resignFirstResponder];方法二:在xib文件中,可以不在View页面上添加一个View控件 ,一个简单的办法是将View页面的类设置为UIControl(该类继承与UIView).h文件:#import <UIKit/UIKit.h>@interface HomeViewController : UIViewController@property (retain, nonatomic) IBOutlet UITextField *nameField;@property (retain, n
阅读全文
posted @ 2012-10-27 12:46