키보드를 표시하고 숨길 때 탐지하는 방법 프로그램에서 키보드가 표시되고 숨겨지는 경우 어떻게 탐지할 수 있습니까?키보드에 대한 메시지를 듣기 위해 설정된 클래스의 ViewDidLoad 메서드에서 다음을 수행합니다. // Listen for keyboard appearances and disappearances [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardDidShow:) name:UIKeyboardDidShowNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardDi..