我正在为 iPad 开发基于拆分视图的应用程序。我创建了一个菜单覆盖系统,该系统有一个按钮可以进入拆分视图应用程序。图片见评论
但是,当您单击 enter 按钮时,结果如下:
http://commandoswat.webs.com/Screen%20shot%202010-09-16%20at%201.37.11%20PM.png
这是我的应用程序委托代码:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after app launch.
mainMenuController = [[MainMenuController alloc]init];
mainMenuController.sWindow = window;
mainMenuController.sController = splitViewController;
// Add the split view controller's view to the window and display.
[window addSubview:mainMenuController.view];
[window makeKeyAndVisible];
return YES;
}
这是我的 MainMenuController 输入按钮的代码:
-(IBAction) enterButton{
[self.view removeFromSuperview];
[sWindow addSubview:sController.view];
}
如何让拆分视图占据整个屏幕?
有什么建议么?
谢谢