views:

53

answers:

1

Hi - how can i get the currently active view (the main view currently being viewed by the user) from the app delegate for references sake?

A: 

Define "main view". There could be several UIView objects (and subclasses) on-screen at once. Which one would you expect to get?

Shaggy Frog
Say the user is currently on a screen to perform a specific action, I want to get the viewcontroller for the container view for that screen
David
You'll have to keep track of that yourself. Like views, there could be more than one view controller active on the screen.
Shaggy Frog