3 回答
TA贡献1794条经验 获得超7个赞
好的,我知道这个问题没有使用导航控制器,但没有理由不这样做。OP没有及时回应我的睡觉时间。不要投票给我。:)
以下是使用导航控制器弹出当前视图控制器并翻转到新视图控制器的方法:
UINavigationController *myNavigationController = self.navigationController;
[[self retain] autorelease];
[myNavigationController popViewControllerAnimated:NO];
PreferencesViewController *controller = [[PreferencesViewController alloc] initWithNibName:nil bundle:nil];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration: 0.65];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:myNavigationController.view cache:YES];
[myNavigationController pushViewController:controller animated:NO];
[UIView commitAnimations];
[controller release];
- 3 回答
- 0 关注
- 491 浏览
添加回答
举报