iphone 如何获取整个屏幕的大小

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

   
MenuViewController *menuController = [[MenuViewController alloc] initWithNibName:@"MenuView" bundle:nil];
    self
.menuViewController = menuController;
   
[menuController release];

    menuViewController
.view.frame = [UIScreen mainScreen].applicationFrame;
   
[window addSubview:[menuViewController view]];
   
[window makeKeyAndVisible];

   
return YES;
}
posted on 2011-11-08 00:15  wtq  阅读(1041)  评论(0编辑  收藏  举报