iphone how to get the size of the entire screen

45474 단어 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;
}

좋은 웹페이지 즐겨찾기