title: Show the UIToolbar's UIBarButtonItem in the right side, instead of the left side
body: <p>Can someone tell me why my button is on the left side instead of the right? I would like it on the right. Thanks for any help you can give!</p>
  
  <pre><code>- (IBAction)getSelection:(id)sender {
  
      if(self.pickerShown == NO){
  
          self.slidePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake(0,0, 320, 216)];
          self.slidePicker.datePickerMode = UIDatePickerModeTime;
          self.slidePicker.backgroundColor = [UIColor whiteColor];
          [self.view addSubview:self.slidePicker];
  
          //make done button
          self.toolBar= [[UIToolbar alloc] initWithFrame:CGRectMake(0,0,320,44)];
          self.toolBar.barTintColor = [UIColor whiteColor];
          self.barButtonDone = [[UIBarButtonItem alloc] initWithTitle:@"Done"
                                                                style:UIBarButtonItemStylePlain target:self
                                                               action:@selector(testButton)];
  
          self.toolBar.items = [[NSArray alloc] initWithObjects:self.barButtonDone,nil];
          self.navigationItem.rightBarButtonItem = self.barButtonDone;
          self.barButtonDone.tintColor=[UIColor blackColor];
          self.pickerShown = YES;
          [self.view addSubview:self.toolBar];
      }
      else {
          return;
      }
  }
  </code></pre>