// 应用只支持竖屏 applicatindelegate 方法里添加代理方法 (NSUInteger)application:(UIApplication)application supportedInterfaceOrientationsForWindow:(UIWindow)window { return UIInterfaceOrientationMaskPortrait; }