How do we find which view is presently first responder when application become active. I know application delegates applicationWillEnterForeground and applicationDidBecomeActive will be called in cases, how can I use this to intimate view which is first responder.
I have googled and stack overflowed didn’t find exact answer. Any idea friends..
Getting reference to the top-most view/window in iOS application
Refer getting-reference-to-the-top-most-view-window-in-ios-application link.
EDIT intiate action to current view to perform when application returing from background
Now application enters foreground :
Now in all view controllers’s view will appear method which will be called for topmost viewcontroller so do this: