Improvement - View controller: Remove properties initialization from 'viewDidLoad'.

see https://github.com/matrix-org/matrix-ios-kit/issues/94
This commit is contained in:
giomfo
2017-01-03 14:40:23 +01:00
parent bdcf8f2011
commit b5af0a295c
23 changed files with 203 additions and 82 deletions
@@ -60,6 +60,16 @@
#pragma mark -
- (void)finalizeInit
{
[super finalizeInit];
// Setup `MXKViewControllerHandling` properties
self.defaultBarTintColor = kVectorNavBarTintColor;
self.enableBarTintColorStatusChange = NO;
self.rageShakeManager = [RageShakeManager sharedManager];
}
- (void)viewDidLoad
{
[super viewDidLoad];
@@ -70,11 +80,6 @@
// Instantiate view controller objects
[[[self class] nib] instantiateWithOwner:self options:nil];
}
// Setup `MXKViewControllerHandling` properties
self.defaultBarTintColor = kVectorNavBarTintColor;
self.enableBarTintColorStatusChange = NO;
self.rageShakeManager = [RageShakeManager sharedManager];
[self.contactsTableView registerNib:ContactTableViewCell.nib forCellReuseIdentifier:ContactTableViewCell.defaultReuseIdentifier];