ios 拿到第一响应者的当前视图

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

你可能感兴趣的:(ios 拿到第一响应者的当前视图)