【发布时间】:2010-07-01 10:56:50
【问题描述】:
我有一个按钮,按下时会向用户显示一个视图控制器。我目前使用这样的方法来做到这一点:
ProjectViewController *myProj = [[ProjectViewController alloc] init];
myProj.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
myProj.modalPresentationStyle = UIModalPresentationFullScreen;
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:myProj];
[self presentModalViewController:navController animated:YES];
[myProj release];
[navController release];
我想将这个新视图作为一个从屏幕中间开始增长的矩形呈现给用户。这样做的最佳方法是什么? 干杯
【问题讨论】: