I want to be able to grab the main UIView for the application. So far, I have been calling [[[self.view superview] superview] superview] to traverse up the chain (or down, depending on how you look at it). The problem with this is that it is possible that I can't be absolutely sure the number of levels up I need to go. Is there a way to:
- Go directly to the highest level UIView in an iPhone application?
or, if not,
- Check to see if the current superview is the highest level UIView in the app?