我有一个在我的ParentViewController中以modalViewController的形式呈现的viewController。parentViewController有一个带有两个选项卡的UITab栏。当我将ChildCiewController显示为modalViewController时,在ChildViewController.view的底部有一个UITab栏大小的空白区域。如何摆脱它?
InAppPurchaseViewController *purchaseViewController = [[InAppPurchaseViewController alloc] initWithNibName:@"InAppPurchaseViewController" bundle:nil];
purchaseViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:purchaseViewController animated:YES];
[purchaseViewController release];提前感谢
发布于 2011-04-17 20:55:26
确保purchaseViewController.view.frame正确(0、0、320、480)。
使用CGRect r= purchaseViewController.view.frame;NSLog(@“帧是:%d - %d - %d -%d",r.origin.x,r.origin.y,r.size.width,r.size.height)进行测试
希望这能有所帮助
https://stackoverflow.com/questions/5693298
复制相似问题