title: Next/Previous Keyboard Toolbar iOS7
body: <p>Currently, I am trying to set the next/previous buttons on my keyboard toolbar to the new, sleek iOS 7 back button/forward buttons that get put in navigation controllers to go back. Here is what I am trying. How can I use the system bar button item instead of the boring static text?</p>
  
  <pre><code>[self setToolbar:[[UIToolbar alloc] initWithFrame:self.frame]];
          [self.toolbar setBarStyle:UIBarStyleDefault];
          [self.toolbar setAutoresizingMask:(UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleWidth)];
          [self addSubview:self.toolbar];
  
          [self setSegmentedControl:[[UISegmentedControl alloc] initWithItems:@[ NSLocalizedStringFromTable(@"Previous", @"BSKeyboardControls", @"Previous button title."),
                                                                                 NSLocalizedStringFromTable(@"Next", @"BSKeyboardControls", @"Next button title.") ]]];
  </code></pre>
  
  <p>Here is what it looks like now:</p>
  
  <p><img src="https://i.stack.imgur.com/0Vbcx.png" alt="enter image description here"></p>
  
  <p>Here is what I want it to look like:
  <img src="https://i.stack.imgur.com/FzrPy.png" alt="enter image description here"></p>
  
  <p>Any ideas on how to access those system items without actually using images? I know its the exact iOS 7 back bar button item, I just don't know how to access it in a tool bar. I've searched everywhere. If it helps, i'm using BSKeyboardControls.</p>
  
  <p>EDIT: To make it look exactly like the second image, use the images provided by Joshua, and save them as back@2x.png, and forward@2x.png into your xcode proj. Use Chun's code, but make sure to call the method for getting the images like this: imageNamed:@"back", and not @"back@2x". You now have iOS 7 back and forward buttons :)</p>
  
  <p>EDIT2: To get it to look exactly like the next/previous arrow buttons use the following customizations in the correct implementation methods:</p>
  
  <pre><code>[self.segmentedControl setWidth:50 forSegmentAtIndex:0];
  [self.segmentedControl setWidth:38 forSegmentAtIndex:1];
  
  negativeSeparator.width = -19;
  </code></pre>
  
  <p>EDIT3: The toolbar with the &lt; > arrows comes by default with all UIWebViews, and it appears when you tap a textfield.</p>
  
  <p>If anyone is interested in a sample project, let me know, and i'll upload a link!</p>
  
  <p>EDIT4: As of May 24, 2014, BSKeyboardControls now has this functionality by default.</p>