Skip to content

Instantly share code, notes, and snippets.

@ArsnealX
Created February 5, 2016 07:35
Show Gist options
  • Save ArsnealX/31fed5c2653371abd61a to your computer and use it in GitHub Desktop.
Save ArsnealX/31fed5c2653371abd61a to your computer and use it in GitHub Desktop.
View Controller Code Snippets
#import "YourViewControllerName.h"
@implementation YourViewControllerName
#pragma mark - Life Cycle
- (void)viewDidLoad {
[super viewDidLoad];
[self loadDataSource];
[self loadUIComponents];
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
}
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
}
- (void)viewWillDisappear:(BOOL)animated {
[super viewWillDisappear:animated];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
#pragma mark - UI Loading
- (void)loadUIComponents {
[self loadNavigationItems];
}
- (void)loadNavigationItems {
}
#pragma mark - UI Status
- (void)configUI {
}
#pragma mark - DataSource and Delegate
#pragma mark - Network Callback
#pragma mark - Event Responder
#pragma mark - Data Loading
- (void)loadDataSource {
}
#pragma mark - Private Method
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment