Monday, December 5, 2011

iOS: To find what is the first responder.

Notes: this is used for test only, do not use this codes in App because it is not allowed by Apple.
UIWindow *keyWindow = [[UIApplication sharedApplication] keyWindow]; 
UIView   *firstResponder = [keyWindow performSelector:@selector(firstResponder)]; 

1 comment: