我在這裏做錯了什麼?我只是沒有看到屏幕底部的工具欄這是我的代碼。以編程方式添加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