我正在为iPad开发基于拆分视图的应用程序。我创建了一个菜单覆盖系统,它有一个通向分割视图应用程序的按钮。查看图片评论
但是,当您单击“输入”按钮时,会产生以下结果:
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按钮的代码:
-(IBAction) enterButton{
[self.view removeFromSuperview];
[sWindow addSubview:sController.view];
}
如何使拆分视图占据整个屏幕?
有什么建议吗?
由于
答案 0 :(得分:0)
在我看来,您的详细信息视图尺寸不正确,和/或未正确设置其autoresizingMask
属性(具有灵活的宽度)。