get the top view

 

    // http://stackoverflow.com/questions/3843411/getting-reference-to-the-top-most-view-window-in-ios-application/8045804#8045804

    topView = [[[[UIApplicationsharedApplication] keyWindow] subviews] lastObject];

猜你喜欢

转载自justsee.iteye.com/blog/1974284
top
get