现在的位置: 首页 > 综合 > 正文

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

2012年02月05日 ⁄ 综合 ⁄ 共 432字 ⁄ 字号 评论关闭
- (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;
}

抱歉!评论已关闭.