2011-04-17 85 views
1

我有一個viewController,我在我的ParentViewController中呈現爲modalViewController。 parentViewController有一個帶有2個選項卡的UITab欄。當我將ChildCiewController作爲modalViewController呈現時,ChildViewController.view底部的UITab欄的大小爲空白。如何擺脫它?UITabbar + ModalViewController

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


purchaseViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;      

[self presentModalViewController:purchaseViewController animated:YES]; 

[purchaseViewController release]; 

由於提前

回答

0

確保purchaseViewController.view.frame是正確的(0,0,320,480)。

用 測試CGRect r = purchaseViewController.view.frame; (「@ frame is:%d - %d - %d - %d」,r.origin.x,r.origin.y,r.size.width,r.size.height)

Hope這有助於

+0

我明白了。我的框架設置不正確。 – amateurcoder 2011-04-17 17:01:01