UIView를 uibutton으로 설정하여 원하는 때에 키보드를 닫을 수도 있습니다. 오, 벌써 거기에 있었다! 당신이있는 UIButton를 사용하는 경우 키보드를 방출 위해 도청,
CGRect frame = CGRectMake(0,
0,
[self parentViewController].view.bounds.size.width,
[self parentViewController].view.bounds.size.height);
imageView = [[UIButton alloc] initWithFrame:frame];
[imageView setAlpha:0];
imageView.opaque = NO;
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:2];
[imageView setAlpha:0.8];
imageView.backgroundColor = [UIColor blackColor];
[UIView commitAnimations];
[imageView addTarget:self action:@selector(lockedScreenAction:) forControlEvents:UIControlEventTouchUpInside];
[[self parentViewController].view addSubview:imageView];
고마워요 시릴. 이제 코드에 copyNpaste를 만들면 완벽하게 작동합니다. :) – Martin