title: How to add a button on the right side of the toolbar?
body: <p>I created a toolbar programmatically:</p>
  
  <pre><code>UIToolbar *boolbar = [UIToolbar new];
      boolbar.barStyle = UIBarStyleDefault;
      boolbar.tintColor = [UIColor orangeColor];
      [boolbar sizeToFit];
  </code></pre>
  
  <p>And then added a button to it:</p>
  
  <pre><code>UIBarButtonItem *cancelleftBarButton =[[UIBarButtonItem alloc]initWithTitle:@"OK" style:UIBarButtonItemStyleBordered target:self action:@selector(tapBackGround:)];
  
  cancelleftBarButton.tintColor = [UIColor orangeColor];
  
  NSArray *array = [NSArray arrayWithObjects:cancelleftBarButton, nil];
  [boolbar setItems:array animated:YES];
  </code></pre>
  
  <p>However, this button appears only at the left side of the toolbar. Is it possible to put it on the right side of the toolbar ? </p>
  
  <p><img src="https://i.stack.imgur.com/VooiW.png" alt="enter image description here"></p>