如何获取当前视图中成为第一响应者的组件,并取消注册

UIWindow *keyWindow = [[UIApplication sharedApplication] keyWindow]; 
UIView *firstResponder = [keyWindow performSelector:@selector(firstResponder)];
[firstResponder resignFirstResponder];

你可能感兴趣的:(如何获取当前视图中成为第一响应者的组件,并取消注册)