我有这种情况:
----------------------------
| UIViewController |
| |
| -------------------- |
| | | |
| | SubViewController | |
| | | |
| -------------------- |
----------------------------
我的 SubViewController 有一个点击手势:
- (void) tapped: (UIGestureRecognizer*) g
{
int tag=g.view.tag;
UIViewController* vc = [controlersOfBoxes objectAtIndex:tag-1];
UIViewController *controller = [[[UIViewController alloc] init] autorelease];
[controller setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];
[controller.view setFrame:vc.view.frame];
[vc presentModalViewController:controller animated:YES];
}
问题是新 UIViewController 的尺寸......我在视图之前放置了相同的框架,但是......填满了所有屏幕......
我只想更改 SubViewController。
任何解决方案!!!