Skip to content

Commit

Permalink
Fix back and next arrows.
Browse files Browse the repository at this point in the history
  • Loading branch information
samvermette committed Nov 12, 2013
1 parent d172cae commit e83c6a9
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
12 changes: 8 additions & 4 deletions SVWebViewController/SVWebViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ @implementation SVWebViewController
- (UIBarButtonItem *)backBarButtonItem {

if (!backBarButtonItem) {
backBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"SVWebViewController.bundle/back"] style:UIBarButtonItemStylePlain target:self action:@selector(goBackClicked:)];
backBarButtonItem.imageInsets = UIEdgeInsetsMake(2.0f, 0.0f, -2.0f, 0.0f);
backBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"SVWebViewController.bundle/SVWebViewControllerBack"]
style:UIBarButtonItemStylePlain
target:self
action:@selector(goBackClicked:)];
backBarButtonItem.width = 18.0f;
}
return backBarButtonItem;
Expand All @@ -58,8 +60,10 @@ - (UIBarButtonItem *)backBarButtonItem {
- (UIBarButtonItem *)forwardBarButtonItem {

if (!forwardBarButtonItem) {
forwardBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"SVWebViewController.bundle/forward"] style:UIBarButtonItemStylePlain target:self action:@selector(goForwardClicked:)];
forwardBarButtonItem.imageInsets = UIEdgeInsetsMake(2.0f, 0.0f, -2.0f, 0.0f);
forwardBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"SVWebViewController.bundle/SVWebViewControllerNext"]
style:UIBarButtonItemStylePlain
target:self
action:@selector(goForwardClicked:)];
forwardBarButtonItem.width = 18.0f;
}
return forwardBarButtonItem;
Expand Down

0 comments on commit e83c6a9

Please sign in to comment.