【发布时间】:2011-12-19 18:50:56
【问题描述】:
我正在尝试在我的 iPad 应用程序的中心打开一个模态视图控制器。
这就是我在代码中所做的事情
Settings_iPad *vController = [[Settings_iPad alloc]
initWithNibName:@"Settings_iPad" bundle:nil];
vController.modalPresentationStyle = UIModalPresentationFormSheet;
// Create a Navigation controller
UINavigationController *navController = [[UINavigationController alloc]
initWithRootViewController:vController];
// show the navigation controller modally
[self presentModalViewController:navController animated:YES];
// Clean up resources
[navController release];
[vController release];
这就是我得到的http://www.use.com/48bcd41a28a13b562140
如何在窗口中心以较小的尺寸很好地打开此窗口。
谢谢
【问题讨论】:
标签: iphone uinavigationcontroller presentmodalviewcontroller