2013-10-04 130 views

回答

4

不知道你已經嘗試了什麼,但是,如果你想添加從UIViewController這是UITabBarController裏面的觀點,那麼你應該使用:

UIView *coverView = [[UIView alloc] initWithFrame:CGRectMake(0, 
                  0, 
        self.tabBarController.view.frame.size.width, 
        self.tabBarController.view.frame.size.height)]; 
[self.tabBarController.view addSubview:coverView]; 
//and maybe [self.tabBarController.view bringSubviewToFront:coverView]; 
+0

感謝和者均基於最後一個屬性應該是self.tabBarController .view.frame.size.Height。 – CLDev