Last active
January 1, 2016 05:19
-
-
Save nebiros/8097686 to your computer and use it in GitHub Desktop.
Custom back button as navigation item left bar button.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "MyViewController.h" | |
#import "UIViewController+JIMBackButton.h" | |
@interface MyViewController () | |
@end | |
@implementation MyViewController | |
#pragma mark - UIViewController | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
[self jim_setupCustomBackButton]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Don't return in middle of statements unless it has an advantage of readability, e.g. a big-ass if statement.