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

UIWindow *keyWindow = [[UIApplication sharedApplication] keyWindow]; 
UIView *firstResponder = [keyWindow performSelector:@selector(firstResponder)];
[firstResponder resignFirstResponder];
posted @ 2011-10-12 11:14  Piosa  阅读(1180)  评论(0编辑  收藏  举报