diff --git a/QMUICommonTableViewController/___FILEBASENAME___.m b/QMUICommonTableViewController/___FILEBASENAME___.m index 4490b9e..10cbc6d 100644 --- a/QMUICommonTableViewController/___FILEBASENAME___.m +++ b/QMUICommonTableViewController/___FILEBASENAME___.m @@ -14,8 +14,8 @@ @interface ___FILEBASENAMEASIDENTIFIER___ () @implementation ___FILEBASENAMEASIDENTIFIER___ -- (void)didInitializedWithStyle:(UITableViewStyle)style { - [super didInitializedWithStyle:style]; +- (void)didInitializeWithStyle:(UITableViewStyle)style { + [super didInitializeWithStyle:style]; // init 时做的事情请写在这里 } @@ -49,8 +49,8 @@ - (void)viewDidLayoutSubviews { [super viewDidLayoutSubviews]; } -- (void)setNavigationItemsIsInEditMode:(BOOL)isInEditMode animated:(BOOL)animated { - [super setNavigationItemsIsInEditMode:isInEditMode animated:animated]; +- (void)setupNavigationItems { + [super setupNavigationItems]; self.title = @"<##>"; } diff --git a/QMUICommonViewController/___FILEBASENAME___.m b/QMUICommonViewController/___FILEBASENAME___.m index 4da7297..a555c07 100644 --- a/QMUICommonViewController/___FILEBASENAME___.m +++ b/QMUICommonViewController/___FILEBASENAME___.m @@ -14,8 +14,8 @@ @interface ___FILEBASENAMEASIDENTIFIER___ () @implementation ___FILEBASENAMEASIDENTIFIER___ -- (void)didInitialized { - [super didInitialized]; +- (void)didInitialize { + [super didInitialize]; // init 时做的事情请写在这里 } @@ -49,8 +49,8 @@ - (void)viewDidLayoutSubviews { [super viewDidLayoutSubviews]; } -- (void)setNavigationItemsIsInEditMode:(BOOL)isInEditMode animated:(BOOL)animated { - [super setNavigationItemsIsInEditMode:isInEditMode animated:animated]; +- (void)setupNavigationItems { + [super setupNavigationItems]; self.title = @"<##>"; } diff --git a/QMUINavigationController/___FILEBASENAME___.m b/QMUINavigationController/___FILEBASENAME___.m index 438e79b..825ae4e 100644 --- a/QMUINavigationController/___FILEBASENAME___.m +++ b/QMUINavigationController/___FILEBASENAME___.m @@ -14,8 +14,8 @@ @interface ___FILEBASENAMEASIDENTIFIER___ () @implementation ___FILEBASENAMEASIDENTIFIER___ -- (void)didInitialized { - [super didInitialized]; +- (void)didInitialize { + [super didInitialize]; // init 时做的事情请写在这里 } diff --git a/QMUIPopupContainerView/___FILEBASENAME___.m b/QMUIPopupContainerView/___FILEBASENAME___.m index ee7e0c6..d5d49c2 100644 --- a/QMUIPopupContainerView/___FILEBASENAME___.m +++ b/QMUIPopupContainerView/___FILEBASENAME___.m @@ -10,8 +10,8 @@ @implementation ___FILEBASENAMEASIDENTIFIER___ -- (void)didInitialized { - [super didInitialized]; +- (void)didInitialize { + [super didInitialize]; // init 时做的事情请写在这里,subview 请添加到 self.contentView 上 } diff --git a/QMUITabBarViewController/___FILEBASENAME___.m b/QMUITabBarViewController/___FILEBASENAME___.m index 438e79b..825ae4e 100644 --- a/QMUITabBarViewController/___FILEBASENAME___.m +++ b/QMUITabBarViewController/___FILEBASENAME___.m @@ -14,8 +14,8 @@ @interface ___FILEBASENAMEASIDENTIFIER___ () @implementation ___FILEBASENAMEASIDENTIFIER___ -- (void)didInitialized { - [super didInitialized]; +- (void)didInitialize { + [super didInitialize]; // init 时做的事情请写在这里 } diff --git a/QMUITableViewCell/___FILEBASENAME___.m b/QMUITableViewCell/___FILEBASENAME___.m index 1e57033..6dcb760 100644 --- a/QMUITableViewCell/___FILEBASENAME___.m +++ b/QMUITableViewCell/___FILEBASENAME___.m @@ -10,11 +10,9 @@ @implementation ___FILEBASENAMEASIDENTIFIER___ -- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { - if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) { - // init 时做的事情请写在这里 - } - return self; +- (void)didInitializeWithStyle:(UITableViewCellStyle)style { + [super didInitializeWithStyle:style]; + // init 时做的事情请写在这里 } - (void)updateCellAppearanceWithIndexPath:(NSIndexPath *)indexPath {