我在这里做错了什么?我只是没有看到屏幕底部的工具栏这是我的代码。以编程方式添加UIToolbar
CGRect rect = self.view.frame;
UIToolbar *toolBar = [[UIToolbar alloc] initWithFrame:CGRectMake(rect.origin.x,
rect.size.height-44,
rect.size.width,
44)];
self.bottomToolbar = toolBar;
[toolBar release];
[_bottomToolbar setBackgroundImage:nil
forToolbarPosition:UIToolbarPositionBottom
barMetrics:UIBarMetricsDefault];
[self.view addSubview:_bottomToolbar];
你试过了吗[self.parentViewController.view addSubview:_bottomtoolbar];? – ApolloSoftware 2013-02-15 19:24:16