2010-04-21 64 views

回答

1

只要找到它在

Customizing the More menu on a Tab bar
http://discussions.info.apple.com/thread.jspa?threadID=2399024&tstart=0

已经讨论过的,我们可以用得到这个“更”视图控制器的实例:

UIViewController *moreViewController = tabBarController.moreNavigationController.topViewController; 

事实上,这是无证类UIMoreListController声明为:

@interface UIMoreListController : UIViewController <UITableViewDelegate, UITableViewDataSource> 

moreViewController.view属性包含的UITableView,我们可以使用它,例如添加tableHeaderView:

UITableView *moreTableView = (UITableView*)moreViewController.view; 
moreTableView.tableHeaderView = myOwnCustomView; 

但我不知道是该代码“applesafe”?因为它使用私人类,虽然不明确。 如果我想添加一个不应该随表格滚动的视图?有任何想法吗?

0

是的,这是所有可能的,如果你能不能给我们你想要的一个例子,可能与截图什么的,那么我们可以帮你提供一些代码示例

+0

mm ...怎么会更清楚?只需添加一个自定义的UIView,以在“更多”选项卡项目中自动创建具有控制器列表的UIViewController。 – Vladimir 2010-04-21 08:25:42

+0

btw你是使用NIB文件还是使用代码构建整个事物? – lugte098 2010-04-21 08:36:49

+0

所有界面都是在代码中创建的 。 – Vladimir 2010-04-21 08:43:37

0

你可以做你想做什么做...

通过使用UITableViewController作为moreview tabbaritem。

并且可以创建一个moreview类似于标准的moreView控制器。