Provide a public way to detect the first responder

Originator:steipete
Number:rdar://20549460 Date Originated:15-Apr-2015 10:37 AM
Status:Open Resolved:
Product:iOS Product Version:8.3
Classification:Enhancement Reproducible:Always
 
This is a duplicate of rdar://20549403

Summary:

In UIKit, unlike AppKit on the Mac, there’s currently no public way to detect the current first responder. Developers therefore need to resort to workarounds like http://stackoverflow.com/questions/5029267/is-there-any-way-of-asking-an-ios-view-which-of-its-children-has-first-responder/14135456#14135456. 

AppKit already provides -[NSWindow  firstResponder] https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/#//apple_ref/occ/instm/NSWindow/firstResponder, and I would like to request that an equivalent method is added to the public iOS API as well. 

Regression:

A public first responder  API is still missing as of iOS 8.3.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!