/////禁止全局 横屏
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
return UIInterfaceOrientationMaskPortrait;
}
//横屏调整视图
- (void)layoutSubviews{
barView.frame = CGRectMake(0, 0, SCREEN_WIDTH, DrawerBarHeight);
NSLog(@"heng ping le a qin ");
}
原文:http://my.oschina.net/u/1451688/blog/381716