我有一个应用程序,我在其中同时使用导航栏和工具栏(在底部)。两者都有从中心到底部的阴影。这就是我创建工具栏的方式`
[self.navigationController setToolbarHidden:NO animated:YES];
self.navigationController.toolbar.barStyle = UIBarStyleBlackOpaque;
self.navigationController.toolbar.frame=CGRectMake(0, [[UIScreen mainScreen] bounds].size.height -12, [[UIScreen mainScreen] bounds].size.width,30);
self.navigationController.toolbar.tintColor=[UIColor colorWithPatternImage:[UIImage imageNamed:@"top_bar.png"]];
and i am doing the navigation bar like this
UIImage *navBar = [UIImage imageNamed:@"top_bar.png"];
[[UINavigationBar appearance] setBackgroundImage:navBar forBarMetrics:UIBarMetricsDefault];
` 谁能指出我哪里出错了?