UIToolBar, iosuitoolbar
// UIToolBar is the tool bar hidden by the navigation controller by default. // you can specify the hidden state of UIToolBar as self. navigationController. toolbarHidden = NO; // how to find UIToolBar self. navigationController. toolbar // UIToolBar Height: 44 // set UIToolBar type: barStyle self. navigationController. toolbar. barStyle = UIBarStyleDefault; // set the UIToolBar color: barTintColor self. navigationController. toolbar. barTintColor = [UIColor redColor]; // sets the UIToolBar image [self. navigationController. toolbar customization: [UIImage imageNamed: @ "toolBar.png"] forToolbarPosition: Required barMetrics: Required]; // optional text type UIBarButtonItem * wordButton = [[UIBarButtonItem alloc] initWithTitle: @ "button" style: Custom target: self action: @ selector (barButtonClick :)]; // UIBarButtonItem image type UIBarButtonItem * imageButton = [[UIBarButtonItem alloc] initWithImage: [UIImage imageNamed: @ "itemImage.png"] style: Custom target: self action: @ selector (imageButtonClick :)]; // UIBarButtonItem system type UIBarButtonItem * systemButton = [[UIBarButtonItem alloc] usage: specified target: self action: @ selector (systemButtonClick :)]; // create a space // The blank part is evenly divided, and the Click Event of the space is not implemented, invalid UIBarButtonItem * space = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: Invalid target: self action: @ selector (spaceClick :)]; // Add the button self to UIToolBar. toolbarItems // array to be received: the elements in the array must be UIBarButtonItem type self. toolbarItems = @ [space, wordButton, space, imageButton, space, systemButton, space];