【发布时间】:2010-08-23 07:55:46
【问题描述】:
我想在我的 UITabBarController moreNavigationController 中的 tableView 后面放置一个图像。在第一次设置 TabBar 时,我尝试过像这样插入子视图:
UIImageView* imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"background3.png"]];
[self.tabBarController.moreNavigationController.topViewController.view insertSubview:imageView atIndex:0];
但这会将图像放在顶部,大概是因为 tableView 当时不存在。是否有更好的时间调用它以使其正常工作,或者更简单的方法?
【问题讨论】:
-
moreNavigationController 是什么?
-
当您有超过 5 个选项卡时,处理 UITabBarController 的“更多”选项卡的视图控制器。见这里:developer.apple.com/iphone/library/documentation/uikit/…
标签: iphone uinavigationcontroller