Skip to content

Instantly share code, notes, and snippets.

@e-vural
Created September 28, 2017 08:35
Show Gist options
  • Save e-vural/dc32d5626262c1822625d7cf8f933153 to your computer and use it in GitHub Desktop.
Save e-vural/dc32d5626262c1822625d7cf8f933153 to your computer and use it in GitHub Desktop.
//This line is orjinal line.
//self.closeButton => close button (Done button)
//flexibleSpaceButton => space between two buttons
//self.backButton => back button left arrow
//fixedSpaceButton => mini space
//self.forwardButton => forward button right arrow
[self.toolbar setItems:@[self.closeButton, flexibleSpaceButton, self.backButton, fixedSpaceButton, self.forwardButton]];
//For example if you change this line below,toolbar look like | ◄ ► |. Done button removed.
[self.toolbar setItems:@[fixedSpaceButton, self.backButton, flexibleSpaceButton, self.forwardButton , fixedSpaceButton]];
//if you want to change left right arrow icon, plase check this lines
NSString* frontArrowString = NSLocalizedString(@"►", nil); // create arrow from Unicode char
NSString* backArrowString = NSLocalizedString(@"◄", nil); // create arrow from Unicode char
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment