ios開発でキーボードを隠す方法

Javaコード:
– (void)viewDidLoad {
[super viewDidLoad];
UITapGestureRecognizer *mullTap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(hiddenKeyBoard)];
mullTap.delegate = self;
mullTap.numberOfTapsRequired = 1;
[self.view addGestureRecognizer:mullTap];

}

-(void)hiddenKeyBoard
{
[self.view endEditing:YES];
}

IOS

Posted by arkgame