开发者

UITabbar + ModalViewController

开发者 https://www.devze.com 2023-02-27 02:14 出处:网络
I have a viewController that I am presenting as modalViewController in my ParentViewController. The parentViewController has a UITab bar with 2 tabs. When I present the ChildCiewController as modalVie

I have a viewController that I am presenting as modalViewController in my ParentViewController. The parentViewController has a UITab bar with 2 tabs. When I present the ChildCiewController as modalViewController, there is blank space the size of UITab bar at the bottom of the ChildViewController.view. How to get rid of it?

InAppPurchaseViewController *purchaseViewController = [[InAppPurchaseViewController alloc] initWithNibName:@"InAppPurchaseViewController" bundle:nil];              


purchaseViewController.modalTransitionStyle = UIModalTransitionStyleCro开发者_Go百科ssDissolve;                      

[self presentModalViewController:purchaseViewController animated:YES];

[purchaseViewController release];

Thanks in Advance


Be sure that purchaseViewController.view.frame is correct (0, 0, 320, 480).

Test with CGRect r = purchaseViewController.view.frame; NSLog(@"frame is: %d - %d - %d -%d", r.origin.x, r.origin.y, r.size.width, r.size.height)

Hope this helps

0

精彩评论

暂无评论...
验证码 换一张
取 消