제출 버튼을 눌렀을 때 두 텍스트 필드의 정보를 제출하여이 작업을 호출하는 버튼이 있지만 버튼을 눌렀을 때 키보드가 숨겨져 도움을받을 수없는 경우가 있습니다. 현재 내 코드는 다음과 같습니다.iOS 키보드가 작동 중일 때
-(IBAction)PurchaseSubmitAction:(id)sender{
PFObject *gameScore = [PFObject objectWithClassName:@"Purchase"];
gameScore[@"name"] = FullName.text;
gameScore[@"phone"] = PhoneNumber.text;
[gameScore saveInBackground];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:.3];
[_Purchase setAlpha:0];
[UIView commitAnimations];
[sender resignFirstResponder];
NSLog(@"Load");
}
어떻게 키보드를 지울 수 있습니까? 미리 감사드립니다.