获取window上的view 2015/09/05 14142 导入头文件 #import "AppDelegate.h" UIView *view = [UIApplication sharedApplication].delegate).window.rootViewController.view;