// http://stackoverflow.com/questions/3843411/getting-reference-to-the-top-most-view-window-in-ios-application/8045804#8045804
topView = [[[[UIApplicationsharedApplication] keyWindow] subviews] lastObject];