//1.显示底部工具栏
self.navigationController.toolbarHidden = NO;
//2.设置底部工具栏的背景图片
UIImage *navBarImage11 = [UIImage imageNamed:@"bottomBK.png"];
UIImageView *imageView11 = [[UIImageView alloc] initWithImage:navBarImage11];
[self.navigationController.toolbar addSubview:imageView11];
//3.设置底部工具栏的文本颜色
self.navigationController.toolbar.tintColor = [UIColor redColor];
//4.两个自定义tool下的按钮和系统save按钮
UIBarButtonItem *custom = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSearch target:nil action:nil];
UIButton *button3 = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 60, 44)];
[button3 setBackgroundImage:[UIImage imageNamed:@"102.png"] forState:UIControlStateNormal];
custom.customView = button3;
UIBarButtonItem *add = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAddtarget:nil action:nil];
UIButton *button4 = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 60, 44)];
[button4 setBackgroundImage:[UIImage imageNamed:@"102.png"] forState:UIControlStateNormal];
add.customView = button4;
UIBarButtonItem *save = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSavetarget:nil action:nil];
UIBarButtonItem *save3 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSavetarget:nil action:nil];
UIBarButtonItem *save1 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSavetarget:nil action:nil];
UIBarButtonItem *save2 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSavetarget:nil action:nil];
self.toolbarItems = [NSArray arrayWithObjects:custom,add,save,save1,save2,save3,nil];
[button3 release];
[button4 release];
[custom release];
[add release];
[save release];
[save1 release];
[save2 release];
[save3 release];