Skip to content

Commit

Permalink
更新模板里的 API 命名
Browse files Browse the repository at this point in the history
  • Loading branch information
MoLice committed Jun 12, 2018
1 parent ac98feb commit f737ed1
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 19 deletions.
8 changes: 4 additions & 4 deletions QMUICommonTableViewController/___FILEBASENAME___.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ @interface ___FILEBASENAMEASIDENTIFIER___ ()

@implementation ___FILEBASENAMEASIDENTIFIER___

- (void)didInitializedWithStyle:(UITableViewStyle)style {
[super didInitializedWithStyle:style];
- (void)didInitializeWithStyle:(UITableViewStyle)style {
[super didInitializeWithStyle:style];
// init 时做的事情请写在这里
}

Expand Down Expand Up @@ -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 = @"<##>";
}

Expand Down
8 changes: 4 additions & 4 deletions QMUICommonViewController/___FILEBASENAME___.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ @interface ___FILEBASENAMEASIDENTIFIER___ ()

@implementation ___FILEBASENAMEASIDENTIFIER___

- (void)didInitialized {
[super didInitialized];
- (void)didInitialize {
[super didInitialize];
// init 时做的事情请写在这里
}

Expand Down Expand Up @@ -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 = @"<##>";
}

Expand Down
4 changes: 2 additions & 2 deletions QMUINavigationController/___FILEBASENAME___.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ @interface ___FILEBASENAMEASIDENTIFIER___ ()

@implementation ___FILEBASENAMEASIDENTIFIER___

- (void)didInitialized {
[super didInitialized];
- (void)didInitialize {
[super didInitialize];
// init 时做的事情请写在这里
}

Expand Down
4 changes: 2 additions & 2 deletions QMUIPopupContainerView/___FILEBASENAME___.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

@implementation ___FILEBASENAMEASIDENTIFIER___

- (void)didInitialized {
[super didInitialized];
- (void)didInitialize {
[super didInitialize];
// init 时做的事情请写在这里,subview 请添加到 self.contentView 上
}

Expand Down
4 changes: 2 additions & 2 deletions QMUITabBarViewController/___FILEBASENAME___.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ @interface ___FILEBASENAMEASIDENTIFIER___ ()

@implementation ___FILEBASENAMEASIDENTIFIER___

- (void)didInitialized {
[super didInitialized];
- (void)didInitialize {
[super didInitialize];
// init 时做的事情请写在这里
}

Expand Down
8 changes: 3 additions & 5 deletions QMUITableViewCell/___FILEBASENAME___.m
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f737ed1

Please sign in to comment.