我正在爲基於分割視圖的iPad應用程序工作。我創建了一個菜單覆蓋系統,該系統具有一個導入分割視圖應用程序的按鈕。圖像iPad SplitView應用程序不佔用整個窗口
當您單擊回車鍵見註釋,但是,它會導致這樣的:
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 Enter Button:
-(IBAction) enterButton{
[self.view removeFromSuperview];
[sWindow addSubview:sController.view];
}
如何使分割視圖佔據整個屏幕?
有什麼建議嗎?
感謝
這是一個輸入屏幕的圖像:http://commandoswat.webs.com/Screen%20shot%202010-09-16%20at%201.37.11%20PM.png – CSwat 2010-09-16 17:51:32