/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
- (UIView *)findFirstResonder:(UIView*)root { if ([root isFirstResponder]) { return root; } for (UIView *subView in root.subviews) { UIView *firstResponder = [self findFirstResonder:subView]; if (firstResponder != nil) { return firstResponder; } } return nil; }