diff --git a/QMUICommonTableViewController/___FILEBASENAME___.h b/QMUICommonTableViewController/___FILEBASENAME___.h new file mode 100644 index 0000000..4c1a017 --- /dev/null +++ b/QMUICommonTableViewController/___FILEBASENAME___.h @@ -0,0 +1,13 @@ +// +// ___FILENAME___ +// ___PROJECTNAME___ +// +// Created by ___FULLUSERNAME___ on ___DATE___. +//___COPYRIGHT___ +// + +___IMPORTHEADER_cocoaTouchSubclass___ + +@interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___ + +@end diff --git a/QMUICommonTableViewController/___FILEBASENAME___.m b/QMUICommonTableViewController/___FILEBASENAME___.m new file mode 100644 index 0000000..93f3807 --- /dev/null +++ b/QMUICommonTableViewController/___FILEBASENAME___.m @@ -0,0 +1,65 @@ +// +// ___FILENAME___ +// ___PROJECTNAME___ +// +// Created by ___FULLUSERNAME___ on ___DATE___. +//___COPYRIGHT___ +// + +#import "___FILEBASENAME___.h" + +@interface ___FILEBASENAMEASIDENTIFIER___ () + +@end + +@implementation ___FILEBASENAMEASIDENTIFIER___ + +- (void)didInitialized { + [super didInitialized]; + // init 时做的事情请写在这里 +} + +- (void)viewDidLoad { + [super viewDidLoad]; +} + +- (void)viewWillAppear:(BOOL)animated { + [super viewWillAppear:animated]; +} + +- (void)viewDidAppear:(BOOL)animated { + [super viewDidAppear:animated]; +} + +- (void)viewWillDisappear:(BOOL)animated { + [super viewWillDisappear:animated]; +} + +- (void)viewDidDisappear:(BOOL)animated { + [super viewDidDisappear:animated]; +} + +- (void)viewDidLayoutSubviews { + [super viewDidLayoutSubviews]; +} + +- (void)setNavigationItemsIsInEditMode:(BOOL)isInEditMode animated:(BOOL)animated { + [super setNavigationItemsIsInEditMode:isInEditMode animated:animated]; + self.title = @"<##>"; +} + +#pragma mark - + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { + return 0; +} + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { + return nil; +} + +- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { + +} + +@end diff --git a/QMUICommonViewController/___FILEBASENAME___.h b/QMUICommonViewController/___FILEBASENAME___.h new file mode 100644 index 0000000..4c1a017 --- /dev/null +++ b/QMUICommonViewController/___FILEBASENAME___.h @@ -0,0 +1,13 @@ +// +// ___FILENAME___ +// ___PROJECTNAME___ +// +// Created by ___FULLUSERNAME___ on ___DATE___. +//___COPYRIGHT___ +// + +___IMPORTHEADER_cocoaTouchSubclass___ + +@interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___ + +@end diff --git a/QMUICommonViewController/___FILEBASENAME___.m b/QMUICommonViewController/___FILEBASENAME___.m new file mode 100644 index 0000000..e2dee92 --- /dev/null +++ b/QMUICommonViewController/___FILEBASENAME___.m @@ -0,0 +1,51 @@ +// +// ___FILENAME___ +// ___PROJECTNAME___ +// +// Created by ___FULLUSERNAME___ on ___DATE___. +//___COPYRIGHT___ +// + +#import "___FILEBASENAME___.h" + +@interface ___FILEBASENAMEASIDENTIFIER___ () + +@end + +@implementation ___FILEBASENAMEASIDENTIFIER___ + +- (void)didInitialized { + [super didInitialized]; + // init 时做的事情请写在这里 +} + +- (void)viewDidLoad { + [super viewDidLoad]; +} + +- (void)viewWillAppear:(BOOL)animated { + [super viewWillAppear:animated]; +} + +- (void)viewDidAppear:(BOOL)animated { + [super viewDidAppear:animated]; +} + +- (void)viewWillDisappear:(BOOL)animated { + [super viewWillDisappear:animated]; +} + +- (void)viewDidDisappear:(BOOL)animated { + [super viewDidDisappear:animated]; +} + +- (void)viewDidLayoutSubviews { + [super viewDidLayoutSubviews]; +} + +- (void)setNavigationItemsIsInEditMode:(BOOL)isInEditMode animated:(BOOL)animated { + [super setNavigationItemsIsInEditMode:isInEditMode animated:animated]; + self.title = @"<##>"; +} + +@end diff --git a/QMUINavigationController/___FILEBASENAME___.h b/QMUINavigationController/___FILEBASENAME___.h new file mode 100644 index 0000000..4c1a017 --- /dev/null +++ b/QMUINavigationController/___FILEBASENAME___.h @@ -0,0 +1,13 @@ +// +// ___FILENAME___ +// ___PROJECTNAME___ +// +// Created by ___FULLUSERNAME___ on ___DATE___. +//___COPYRIGHT___ +// + +___IMPORTHEADER_cocoaTouchSubclass___ + +@interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___ + +@end diff --git a/QMUINavigationController/___FILEBASENAME___.m b/QMUINavigationController/___FILEBASENAME___.m new file mode 100644 index 0000000..438e79b --- /dev/null +++ b/QMUINavigationController/___FILEBASENAME___.m @@ -0,0 +1,22 @@ +// +// ___FILENAME___ +// ___PROJECTNAME___ +// +// Created by ___FULLUSERNAME___ on ___DATE___. +//___COPYRIGHT___ +// + +#import "___FILEBASENAME___.h" + +@interface ___FILEBASENAMEASIDENTIFIER___ () + +@end + +@implementation ___FILEBASENAMEASIDENTIFIER___ + +- (void)didInitialized { + [super didInitialized]; + // init 时做的事情请写在这里 +} + +@end diff --git a/QMUIPopupContainerView/___FILEBASENAME___.h b/QMUIPopupContainerView/___FILEBASENAME___.h new file mode 100644 index 0000000..4c1a017 --- /dev/null +++ b/QMUIPopupContainerView/___FILEBASENAME___.h @@ -0,0 +1,13 @@ +// +// ___FILENAME___ +// ___PROJECTNAME___ +// +// Created by ___FULLUSERNAME___ on ___DATE___. +//___COPYRIGHT___ +// + +___IMPORTHEADER_cocoaTouchSubclass___ + +@interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___ + +@end diff --git a/QMUIPopupContainerView/___FILEBASENAME___.m b/QMUIPopupContainerView/___FILEBASENAME___.m new file mode 100644 index 0000000..ee7e0c6 --- /dev/null +++ b/QMUIPopupContainerView/___FILEBASENAME___.m @@ -0,0 +1,28 @@ +// +// ___FILENAME___ +// ___PROJECTNAME___ +// +// Created by ___FULLUSERNAME___ on ___DATE___. +//___COPYRIGHT___ +// + +#import "___FILEBASENAME___.h" + +@implementation ___FILEBASENAMEASIDENTIFIER___ + +- (void)didInitialized { + [super didInitialized]; + // init 时做的事情请写在这里,subview 请添加到 self.contentView 上 +} + +- (CGSize)sizeThatFitsInContentView:(CGSize)size { + // 在这里计算当前控件的 subviews 大小,注意不需要包含 self.contentEdgeInsets + return size; +} + +- (void)layoutSubviews { + [super layoutSubviews]; + // 所有 subviews 请参照 self.contentView 布局 +} + +@end diff --git a/QMUITabBarViewController/___FILEBASENAME___.h b/QMUITabBarViewController/___FILEBASENAME___.h new file mode 100644 index 0000000..4c1a017 --- /dev/null +++ b/QMUITabBarViewController/___FILEBASENAME___.h @@ -0,0 +1,13 @@ +// +// ___FILENAME___ +// ___PROJECTNAME___ +// +// Created by ___FULLUSERNAME___ on ___DATE___. +//___COPYRIGHT___ +// + +___IMPORTHEADER_cocoaTouchSubclass___ + +@interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___ + +@end diff --git a/QMUITabBarViewController/___FILEBASENAME___.m b/QMUITabBarViewController/___FILEBASENAME___.m new file mode 100644 index 0000000..438e79b --- /dev/null +++ b/QMUITabBarViewController/___FILEBASENAME___.m @@ -0,0 +1,22 @@ +// +// ___FILENAME___ +// ___PROJECTNAME___ +// +// Created by ___FULLUSERNAME___ on ___DATE___. +//___COPYRIGHT___ +// + +#import "___FILEBASENAME___.h" + +@interface ___FILEBASENAMEASIDENTIFIER___ () + +@end + +@implementation ___FILEBASENAMEASIDENTIFIER___ + +- (void)didInitialized { + [super didInitialized]; + // init 时做的事情请写在这里 +} + +@end diff --git a/QMUITableViewCell/___FILEBASENAME___.h b/QMUITableViewCell/___FILEBASENAME___.h new file mode 100644 index 0000000..4c1a017 --- /dev/null +++ b/QMUITableViewCell/___FILEBASENAME___.h @@ -0,0 +1,13 @@ +// +// ___FILENAME___ +// ___PROJECTNAME___ +// +// Created by ___FULLUSERNAME___ on ___DATE___. +//___COPYRIGHT___ +// + +___IMPORTHEADER_cocoaTouchSubclass___ + +@interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___ + +@end diff --git a/QMUITableViewCell/___FILEBASENAME___.m b/QMUITableViewCell/___FILEBASENAME___.m new file mode 100644 index 0000000..1e57033 --- /dev/null +++ b/QMUITableViewCell/___FILEBASENAME___.m @@ -0,0 +1,29 @@ +// +// ___FILENAME___ +// ___PROJECTNAME___ +// +// Created by ___FULLUSERNAME___ on ___DATE___. +//___COPYRIGHT___ +// + +#import "___FILEBASENAME___.h" + +@implementation ___FILEBASENAMEASIDENTIFIER___ + +- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { + if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) { + // init 时做的事情请写在这里 + } + return self; +} + +- (void)updateCellAppearanceWithIndexPath:(NSIndexPath *)indexPath { + [super updateCellAppearanceWithIndexPath:indexPath]; + // 每次 cellForRow 时都要做的事情请写在这里 +} + +- (void)layoutSubviews { + [super layoutSubviews]; +} + +@end diff --git a/TemplateIcon.png b/TemplateIcon.png new file mode 100644 index 0000000..777f5c7 Binary files /dev/null and b/TemplateIcon.png differ diff --git a/TemplateIcon@2x.png b/TemplateIcon@2x.png new file mode 100644 index 0000000..94e8e64 Binary files /dev/null and b/TemplateIcon@2x.png differ diff --git a/TemplateInfo.plist b/TemplateInfo.plist new file mode 100644 index 0000000..2662bff --- /dev/null +++ b/TemplateInfo.plist @@ -0,0 +1,80 @@ + + + + + Kind + Xcode.IDEFoundation.TextSubstitutionFileTemplateKind + Description + QMUI iOS 框架的基础类 + Summary + QMUI iOS 框架的基础类 + SortOrder + 0 + DefaultCompletionName + MyClass + Platforms + + com.apple.platform.iphoneos + + Options + + + Identifier + productName + Required + + Name + Class: + Description + The name of the class to create + Type + text + NotPersisted + + + + Identifier + cocoaTouchSubclass + Required + YES + Name + Subclass of: + Description + What class to subclass in the new file + Type + class + Default + NSObject + FallbackHeader + #import <QMUIKit/QMUIKit.h> + Values + + QMUICommonViewController + QMUICommonTableViewController + QMUINavigationController + QMUITabBarViewController + QMUIPopupContainerView + QMUITableViewCell + UIView + + Suffixes + + QMUICommonViewController + ViewController + QMUICommonTableViewController + TableViewController + QMUINavigationController + NavigationController + QMUITabBarViewController + TabBarViewController + QMUIPopupContainerView + PopupView + QMUITableViewCell + TableViewCell + UIView + View + + + + + diff --git a/UIView/___FILEBASENAME___.h b/UIView/___FILEBASENAME___.h new file mode 100644 index 0000000..4c1a017 --- /dev/null +++ b/UIView/___FILEBASENAME___.h @@ -0,0 +1,13 @@ +// +// ___FILENAME___ +// ___PROJECTNAME___ +// +// Created by ___FULLUSERNAME___ on ___DATE___. +//___COPYRIGHT___ +// + +___IMPORTHEADER_cocoaTouchSubclass___ + +@interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___ + +@end diff --git a/UIView/___FILEBASENAME___.m b/UIView/___FILEBASENAME___.m new file mode 100644 index 0000000..bc1ea37 --- /dev/null +++ b/UIView/___FILEBASENAME___.m @@ -0,0 +1,24 @@ +// +// ___FILENAME___ +// ___PROJECTNAME___ +// +// Created by ___FULLUSERNAME___ on ___DATE___. +//___COPYRIGHT___ +// + +#import "___FILEBASENAME___.h" + +@implementation ___FILEBASENAMEASIDENTIFIER___ + +- (instancetype)initWithFrame:(CGRect)frame { + if (self = [super initWithFrame:frame]) { + + } + return self; +} + +- (void)layoutSubviews { + [super layoutSubviews]; +} + +@end