Skip to content

Commit e6e37a3

Browse files
committed
Add 'QMUI/' from commit 'f8677c92551f32197d5248c3f655cb97d58a3239'
git-subtree-dir: QMUI git-subtree-mainline: 597f4e9 git-subtree-split: f8677c9
2 parents 597f4e9 + f8677c9 commit e6e37a3

309 files changed

Lines changed: 26969 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

QMUI/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Xcode
2+
#
3+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
4+
5+
## Build generated
6+
build/
7+
DerivedData/
8+
9+
## Various settings
10+
*.pbxuser
11+
!default.pbxuser
12+
*.mode1v3
13+
!default.mode1v3
14+
*.mode2v3
15+
!default.mode2v3
16+
*.perspectivev3
17+
!default.perspectivev3
18+
xcuserdata/
19+
20+
## Other
21+
*.moved-aside
22+
*.xccheckout
23+
*.xcscmblueprint
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// ___FILENAME___
3+
// ___PROJECTNAME___
4+
//
5+
// Created by ___FULLUSERNAME___ on ___DATE___.
6+
//___COPYRIGHT___
7+
//
8+
9+
___IMPORTHEADER_cocoaTouchSubclass___
10+
11+
@interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
12+
13+
@end
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
//
2+
// ___FILENAME___
3+
// ___PROJECTNAME___
4+
//
5+
// Created by ___FULLUSERNAME___ on ___DATE___.
6+
//___COPYRIGHT___
7+
//
8+
9+
#import "___FILEBASENAME___.h"
10+
11+
@interface ___FILEBASENAMEASIDENTIFIER___ ()
12+
13+
@end
14+
15+
@implementation ___FILEBASENAMEASIDENTIFIER___
16+
17+
- (instancetype)initWithStyle:(UITableViewStyle)style {
18+
if (self = [super initWithStyle:style]) {
19+
20+
}
21+
return self;
22+
}
23+
24+
#pragma mark - 生命周期函数
25+
26+
- (void)dealloc {
27+
28+
}
29+
30+
- (void)loadView {
31+
[super loadView];
32+
}
33+
34+
- (void)viewDidLoad {
35+
[super viewDidLoad];
36+
}
37+
38+
- (void)viewWillAppear:(BOOL)animated {
39+
[super viewWillAppear:animated];
40+
}
41+
42+
- (void)viewDidAppear:(BOOL)animated {
43+
[super viewDidAppear:animated];
44+
}
45+
46+
- (void)viewWillDisappear:(BOOL)animated {
47+
[super viewWillDisappear:animated];
48+
}
49+
50+
- (void)viewDidDisappear:(BOOL)animated {
51+
[super viewDidDisappear:animated];
52+
}
53+
54+
- (void)viewDidLayoutSubviews {
55+
[super viewDidLayoutSubviews];
56+
}
57+
58+
#pragma mark - 工具方法
59+
60+
- (void)willPopViewController {
61+
[super willPopViewController];
62+
}
63+
64+
- (void)setNavigationItemsIsInEditMode:(BOOL)isInEditMode animated:(BOOL)animated {
65+
[super setNavigationItemsIsInEditMode:isInEditMode animated:animated];
66+
// self.title = @"xxx";
67+
}
68+
69+
- (void)setToolbarItemsIsInEditMode:(BOOL)isInEditMode animated:(BOOL)animated {
70+
[super setToolbarItemsIsInEditMode:isInEditMode animated:animated];
71+
}
72+
73+
#pragma mark - TableView Delegate & DataSource
74+
75+
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
76+
return 0;
77+
}
78+
79+
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
80+
static NSString *identifier = @"cell";
81+
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
82+
if (!cell) {
83+
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
84+
}
85+
86+
return cell;
87+
}
88+
89+
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
90+
return 44;
91+
}
92+
93+
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
94+
95+
}
96+
97+
@end
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// ___FILENAME___
3+
// ___PROJECTNAME___
4+
//
5+
// Created by ___FULLUSERNAME___ on ___DATE___.
6+
//___COPYRIGHT___
7+
//
8+
9+
___IMPORTHEADER_cocoaTouchSubclass___
10+
11+
@interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
12+
13+
@end
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
//
2+
// ___FILENAME___
3+
// ___PROJECTNAME___
4+
//
5+
// Created by ___FULLUSERNAME___ on ___DATE___.
6+
//___COPYRIGHT___
7+
//
8+
9+
#import "___FILEBASENAME___.h"
10+
11+
@interface ___FILEBASENAMEASIDENTIFIER___ ()
12+
13+
@end
14+
15+
@implementation ___FILEBASENAMEASIDENTIFIER___
16+
17+
- (instancetype)init {
18+
if (self = [super init]) {
19+
}
20+
return self;
21+
}
22+
23+
#pragma mark - 生命周期函数
24+
25+
- (void)dealloc {
26+
27+
}
28+
29+
- (void)loadView {
30+
[super loadView];
31+
}
32+
33+
- (void)viewDidLoad {
34+
[super viewDidLoad];
35+
}
36+
37+
- (void)viewWillAppear:(BOOL)animated {
38+
[super viewWillAppear:animated];
39+
}
40+
41+
- (void)viewDidAppear:(BOOL)animated {
42+
[super viewDidAppear:animated];
43+
}
44+
45+
- (void)viewWillDisappear:(BOOL)animated {
46+
[super viewWillDisappear:animated];
47+
}
48+
49+
- (void)viewDidDisappear:(BOOL)animated {
50+
[super viewDidDisappear:animated];
51+
}
52+
53+
- (void)viewDidLayoutSubviews {
54+
[super viewDidLayoutSubviews];
55+
}
56+
57+
#pragma mark - 工具方法
58+
59+
- (void)willPopViewController {
60+
[super willPopViewController];
61+
}
62+
63+
- (void)setNavigationItemsIsInEditMode:(BOOL)isInEditMode animated:(BOOL)animated {
64+
[super setNavigationItemsIsInEditMode:isInEditMode animated:animated];
65+
// self.title = @"xxx";
66+
}
67+
68+
- (void)setToolbarItemsIsInEditMode:(BOOL)isInEditMode animated:(BOOL)animated {
69+
[super setToolbarItemsIsInEditMode:isInEditMode animated:animated];
70+
}
71+
72+
@end
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
本文件夹为Xcode文件模板,适用于QMUI框架内的class创建。
2+
3+
使用方法:
4+
将文件夹复制到Xcode模板文件所在目录:
5+
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File Templates/Cocoa Touch/
6+
7+
然后在Xcode里新建一个类,选择使用QMUI class模板即可。
42.7 KB
Binary file not shown.
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>AllowedTypes</key>
6+
<array>
7+
<string>public.objective-c-source</string>
8+
<string>public.objective-c-plus-plus-source</string>
9+
</array>
10+
<key>DefaultCompletionName</key>
11+
<string>MyClass</string>
12+
<key>Description</key>
13+
<string>QMUI框架的基础类</string>
14+
<key>Kind</key>
15+
<string>Xcode.IDEKit.TextSubstitutionFileTemplateKind</string>
16+
<key>MainTemplateFile</key>
17+
<string>___FILEBASENAME___.h</string>
18+
<key>Options</key>
19+
<array>
20+
<dict>
21+
<key>Description</key>
22+
<string>The name of the class to create</string>
23+
<key>Identifier</key>
24+
<string>productName</string>
25+
<key>Name</key>
26+
<string>Class</string>
27+
<key>NotPersisted</key>
28+
<true/>
29+
<key>Required</key>
30+
<true/>
31+
<key>Type</key>
32+
<string>text</string>
33+
</dict>
34+
<dict>
35+
<key>Default</key>
36+
<string>NSObject</string>
37+
<key>Description</key>
38+
<string>What class to subclass in the new file</string>
39+
<key>FallbackHeader</key>
40+
<string>#import &lt;UIKit/UIKit.h&gt;</string>
41+
<key>Identifier</key>
42+
<string>cocoaTouchSubclass</string>
43+
<key>Name</key>
44+
<string>Subclass of</string>
45+
<key>Required</key>
46+
<string>YES</string>
47+
<key>Suffixes</key>
48+
<dict>
49+
<key>QMUICommonViewController</key>
50+
<string>ViewController</string>
51+
<key>QMUICommonTableViewController</key>
52+
<string>ViewController</string>
53+
</dict>
54+
<key>Type</key>
55+
<string>class</string>
56+
<key>Values</key>
57+
<array>
58+
<string>QMUICommonViewController</string>
59+
<string>QMUICommonTableViewController</string>
60+
</array>
61+
</dict>
62+
</array>
63+
<key>Platforms</key>
64+
<array>
65+
<string>com.apple.platform.iphoneos</string>
66+
</array>
67+
<key>Summary</key>
68+
<string>QMUI框架的基础类文件</string>
69+
</dict>
70+
</plist>

QMUI/QMUIKit/Info.plist

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleVersion</key>
20+
<string>$(CURRENT_PROJECT_VERSION)</string>
21+
<key>NSPrincipalClass</key>
22+
<string></string>
23+
</dict>
24+
</plist>

0 commit comments

Comments
 (0)