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