├── ProtocolCellTest
├── Assets.xcassets
│ ├── Contents.json
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── ModuleA
│ ├── KTModel.m
│ ├── KTModel.h
│ ├── ModuleACellConfigHelper.h
│ └── ModuleACellConfigHelper.m
├── ViewController.h
├── AppDelegate.h
├── main.m
├── Cell
│ ├── KTTableViewCell00.h
│ ├── KTTableViewCell01.h
│ ├── KTTableViewCell02.h
│ ├── KTTableViewCell03.h
│ ├── KTTableViewCell00.m
│ ├── KTTableViewCell03.m
│ ├── KTTableViewCell01.m
│ └── KTTableViewCell02.m
├── Info.plist
├── Base.lproj
│ ├── Main.storyboard
│ └── LaunchScreen.storyboard
├── AppDelegate.m
└── ViewController.m
├── README.md
├── ProtocolCellTest.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcuserdata
│ │ └── edz.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
├── xcuserdata
│ └── edz.xcuserdatad
│ │ ├── xcschemes
│ │ └── xcschememanagement.plist
│ │ └── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
└── project.pbxproj
├── ProtocolCellTestTests
├── Info.plist
└── ProtocolCellTestTests.m
└── ProtocolCellTestUITests
├── Info.plist
└── ProtocolCellTestUITests.m
/ProtocolCellTest/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # KTTableViewProtocolDemo
2 | Protocol统一约束,Category适配器解耦。
3 |
4 |
5 | [博客](https://www.jianshu.com/p/723e8435586d)
6 |
--------------------------------------------------------------------------------
/ProtocolCellTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ProtocolCellTest.xcodeproj/project.xcworkspace/xcuserdata/edz.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kiritoSong/KTTableViewProtocolDemo/HEAD/ProtocolCellTest.xcodeproj/project.xcworkspace/xcuserdata/edz.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/ProtocolCellTest/ModuleA/KTModel.m:
--------------------------------------------------------------------------------
1 | //
2 | // KTModel.m
3 | // ProtocolCellTest
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import "KTModel.h"
10 |
11 | @implementation KTModel
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/ProtocolCellTest/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // ProtocolCellTest
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 |
12 |
13 | @interface ViewController : UIViewController
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/ProtocolCellTest.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ProtocolCellTest/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // ProtocolCellTest
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 |
16 | @end
17 |
18 |
--------------------------------------------------------------------------------
/ProtocolCellTest/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // ProtocolCellTest
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "AppDelegate.h"
11 |
12 | int main(int argc, char * argv[]) {
13 | @autoreleasepool {
14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/ProtocolCellTest/Cell/KTTableViewCell00.h:
--------------------------------------------------------------------------------
1 | //
2 | // KTTableViewCell00.h
3 | // ProtocolCellTest
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | NS_ASSUME_NONNULL_BEGIN
12 |
13 | @interface KTTableViewCell00 : UITableViewCell
14 | - (void)configShowViewWithTitle00:(NSString *)title;
15 | @end
16 |
17 | NS_ASSUME_NONNULL_END
18 |
--------------------------------------------------------------------------------
/ProtocolCellTest/Cell/KTTableViewCell01.h:
--------------------------------------------------------------------------------
1 | //
2 | // KTTableViewCell01.h
3 | // ProtocolCellTest
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | NS_ASSUME_NONNULL_BEGIN
12 |
13 | @interface KTTableViewCell01 : UITableViewCell
14 | - (void)configShowViewWithTitle01:(NSString *)title;
15 | @end
16 |
17 | NS_ASSUME_NONNULL_END
18 |
--------------------------------------------------------------------------------
/ProtocolCellTest/Cell/KTTableViewCell02.h:
--------------------------------------------------------------------------------
1 | //
2 | // KTTableViewCell02.h
3 | // ProtocolCellTest
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | NS_ASSUME_NONNULL_BEGIN
12 |
13 | @interface KTTableViewCell02 : UITableViewCell
14 | - (void)configShowViewWithTitle02:(NSString *)title;
15 | @end
16 |
17 | NS_ASSUME_NONNULL_END
18 |
--------------------------------------------------------------------------------
/ProtocolCellTest/Cell/KTTableViewCell03.h:
--------------------------------------------------------------------------------
1 | //
2 | // KTTableViewCell03.h
3 | // ProtocolCellTest
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | NS_ASSUME_NONNULL_BEGIN
12 |
13 | @interface KTTableViewCell03 : UITableViewCell
14 | - (void)configShowViewWithTitle03:(NSString *)title;
15 | @end
16 |
17 | NS_ASSUME_NONNULL_END
18 |
--------------------------------------------------------------------------------
/ProtocolCellTest/ModuleA/KTModel.h:
--------------------------------------------------------------------------------
1 | //
2 | // KTModel.h
3 | // ProtocolCellTest
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | NS_ASSUME_NONNULL_BEGIN
12 |
13 | @interface KTModel : NSObject
14 | @property (nonatomic, copy) NSString *title;
15 |
16 |
17 | @property (nonatomic, copy) NSString *identifier; //cellID
18 | @end
19 |
20 | NS_ASSUME_NONNULL_END
21 |
--------------------------------------------------------------------------------
/ProtocolCellTest.xcodeproj/xcuserdata/edz.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | ProtocolCellTest.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/ProtocolCellTest.xcodeproj/xcuserdata/edz.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/ProtocolCellTestTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/ProtocolCellTestUITests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/ProtocolCellTest/ModuleA/ModuleACellConfigHelper.h:
--------------------------------------------------------------------------------
1 | //
2 | // ModuleACellConfigHelper.h
3 | // ProtocolCellTest
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "KTTableViewCell00.h"
11 | #import "KTTableViewCell01.h"
12 | #import "KTTableViewCell02.h"
13 | #import "KTTableViewCell03.h"
14 |
15 |
16 | @class KTModel;
17 | @protocol ModuleACellConfigPropotol
18 | - (void)configCellWithModel:(KTModel *)model;
19 | @end
20 |
21 | @interface ModuleACellConfigHelper : NSObject
22 | @end
23 |
24 | @interface KTTableViewCell00 (ModuleA)
25 |
26 | @end
27 |
28 | @interface KTTableViewCell01 (ModuleA)
29 |
30 | @end
31 |
32 |
33 | @interface KTTableViewCell02 (ModuleA)
34 |
35 | @end
36 |
37 | @interface KTTableViewCell03 (ModuleA)
38 |
39 | @end
40 |
41 |
42 |
--------------------------------------------------------------------------------
/ProtocolCellTest/Cell/KTTableViewCell00.m:
--------------------------------------------------------------------------------
1 | //
2 | // KTTableViewCell00.m
3 | // ProtocolCellTest
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import "KTTableViewCell00.h"
10 |
11 | @implementation KTTableViewCell00
12 |
13 | - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
14 | {
15 | self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
16 | if (self) {
17 | self.backgroundColor = [UIColor grayColor];
18 | }
19 | return self;
20 | }
21 |
22 |
23 | - (void)configShowViewWithTitle00:(NSString *)title {
24 | self.textLabel.text = title;
25 | }
26 |
27 |
28 |
29 | - (void)awakeFromNib {
30 | [super awakeFromNib];
31 | // Initialization code
32 | }
33 |
34 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
35 | [super setSelected:selected animated:animated];
36 |
37 | // Configure the view for the selected state
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/ProtocolCellTest/Cell/KTTableViewCell03.m:
--------------------------------------------------------------------------------
1 | //
2 | // KTTableViewCell03.m
3 | // ProtocolCellTest
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import "KTTableViewCell03.h"
10 |
11 | @implementation KTTableViewCell03
12 |
13 |
14 | - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
15 | {
16 | self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
17 | if (self) {
18 | self.backgroundColor = [UIColor greenColor];
19 | }
20 | return self;
21 | }
22 |
23 |
24 | - (void)configShowViewWithTitle03:(NSString *)title {
25 | self.textLabel.text = title;
26 | }
27 |
28 |
29 | - (void)awakeFromNib {
30 | [super awakeFromNib];
31 | // Initialization code
32 | }
33 |
34 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
35 | [super setSelected:selected animated:animated];
36 |
37 | // Configure the view for the selected state
38 | }
39 |
40 | @end
41 |
--------------------------------------------------------------------------------
/ProtocolCellTest/Cell/KTTableViewCell01.m:
--------------------------------------------------------------------------------
1 | //
2 | // KTTableViewCell01.m
3 | // ProtocolCellTest
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import "KTTableViewCell01.h"
10 |
11 | @implementation KTTableViewCell01
12 |
13 |
14 | - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
15 | {
16 | self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
17 | if (self) {
18 | self.backgroundColor = [UIColor orangeColor];
19 | }
20 | return self;
21 | }
22 |
23 |
24 | - (void)configShowViewWithTitle01:(NSString *)title {
25 | self.textLabel.text = title;
26 | }
27 |
28 |
29 |
30 | - (void)awakeFromNib {
31 | [super awakeFromNib];
32 | // Initialization code
33 | }
34 |
35 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
36 | [super setSelected:selected animated:animated];
37 |
38 | // Configure the view for the selected state
39 | }
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/ProtocolCellTest/Cell/KTTableViewCell02.m:
--------------------------------------------------------------------------------
1 | //
2 | // KTTableViewCell02.m
3 | // ProtocolCellTest
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import "KTTableViewCell02.h"
10 |
11 | @implementation KTTableViewCell02
12 |
13 |
14 | - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
15 | {
16 | self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
17 | if (self) {
18 | self.backgroundColor = [UIColor yellowColor];
19 | }
20 | return self;
21 | }
22 |
23 |
24 | - (void)configShowViewWithTitle02:(NSString *)title {
25 | self.textLabel.text = title;
26 | }
27 |
28 |
29 |
30 | - (void)awakeFromNib {
31 | [super awakeFromNib];
32 | // Initialization code
33 | }
34 |
35 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
36 | [super setSelected:selected animated:animated];
37 |
38 | // Configure the view for the selected state
39 | }
40 |
41 | @end
42 |
--------------------------------------------------------------------------------
/ProtocolCellTestTests/ProtocolCellTestTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // ProtocolCellTestTests.m
3 | // ProtocolCellTestTests
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ProtocolCellTestTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation ProtocolCellTestTests
16 |
17 | - (void)setUp {
18 | // Put setup code here. This method is called before the invocation of each test method in the class.
19 | }
20 |
21 | - (void)tearDown {
22 | // Put teardown code here. This method is called after the invocation of each test method in the class.
23 | }
24 |
25 | - (void)testExample {
26 | // This is an example of a functional test case.
27 | // Use XCTAssert and related functions to verify your tests produce the correct results.
28 | }
29 |
30 | - (void)testPerformanceExample {
31 | // This is an example of a performance test case.
32 | [self measureBlock:^{
33 | // Put the code you want to measure the time of here.
34 | }];
35 | }
36 |
37 | @end
38 |
--------------------------------------------------------------------------------
/ProtocolCellTest/ModuleA/ModuleACellConfigHelper.m:
--------------------------------------------------------------------------------
1 | //
2 | // ModuleACellConfigHelper.m
3 | // ProtocolCellTest
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import "ModuleACellConfigHelper.h"
10 | #import "KTModel.h"
11 |
12 | @implementation ModuleACellConfigHelper
13 |
14 | @end
15 |
16 |
17 | @implementation KTTableViewCell00 (ModuleA)
18 |
19 | - (void)configCellWithModel:(KTModel *)model {
20 | [self configShowViewWithTitle00:model.title];
21 | }
22 |
23 | @end
24 |
25 | @implementation KTTableViewCell01 (ModuleA)
26 |
27 | - (void)configCellWithModel:(KTModel *)model {
28 | [self configShowViewWithTitle01:model.title];
29 | }
30 |
31 | @end
32 |
33 | @implementation KTTableViewCell02 (ModuleA)
34 |
35 | - (void)configCellWithModel:(KTModel *)model {
36 | [self configShowViewWithTitle02:model.title];
37 | }
38 |
39 | @end
40 |
41 | @implementation KTTableViewCell03 (ModuleA)
42 |
43 | - (void)configCellWithModel:(KTModel *)model {
44 | [self configShowViewWithTitle03:model.title];
45 | }
46 |
47 | @end
48 |
--------------------------------------------------------------------------------
/ProtocolCellTestUITests/ProtocolCellTestUITests.m:
--------------------------------------------------------------------------------
1 | //
2 | // ProtocolCellTestUITests.m
3 | // ProtocolCellTestUITests
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ProtocolCellTestUITests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation ProtocolCellTestUITests
16 |
17 | - (void)setUp {
18 | // Put setup code here. This method is called before the invocation of each test method in the class.
19 |
20 | // In UI tests it is usually best to stop immediately when a failure occurs.
21 | self.continueAfterFailure = NO;
22 |
23 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
24 | [[[XCUIApplication alloc] init] launch];
25 |
26 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
27 | }
28 |
29 | - (void)tearDown {
30 | // Put teardown code here. This method is called after the invocation of each test method in the class.
31 | }
32 |
33 | - (void)testExample {
34 | // Use recording to get started writing UI tests.
35 | // Use XCTAssert and related functions to verify your tests produce the correct results.
36 | }
37 |
38 | @end
39 |
--------------------------------------------------------------------------------
/ProtocolCellTest/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UILaunchStoryboardName
24 | LaunchScreen
25 | UIMainStoryboardFile
26 | Main
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ProtocolCellTest/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/ProtocolCellTest/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/ProtocolCellTest/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/ProtocolCellTest/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // ProtocolCellTest
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 |
11 | @interface AppDelegate ()
12 |
13 | @end
14 |
15 | @implementation AppDelegate
16 |
17 |
18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19 | // Override point for customization after application launch.
20 | return YES;
21 | }
22 |
23 |
24 | - (void)applicationWillResignActive:(UIApplication *)application {
25 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
27 | }
28 |
29 |
30 | - (void)applicationDidEnterBackground:(UIApplication *)application {
31 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
33 | }
34 |
35 |
36 | - (void)applicationWillEnterForeground:(UIApplication *)application {
37 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
38 | }
39 |
40 |
41 | - (void)applicationDidBecomeActive:(UIApplication *)application {
42 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
43 | }
44 |
45 |
46 | - (void)applicationWillTerminate:(UIApplication *)application {
47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
48 | }
49 |
50 |
51 | @end
52 |
--------------------------------------------------------------------------------
/ProtocolCellTest/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // ProtocolCellTest
4 | //
5 | // Created by Klaus on 2019/3/29.
6 | // Copyright © 2019年 Klaus. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "KTModel.h"
11 | #import "ModuleACellConfigHelper.h"
12 |
13 | @interface ViewController ()
14 | @property (nonatomic) UITableView *tableView;
15 | @property (nonatomic) NSMutableArray * dataArr;
16 | @end
17 |
18 | @implementation ViewController
19 |
20 | #pragma mark - lift cycle
21 | - (void)viewDidLoad {
22 | [super viewDidLoad];
23 | [self.view addSubview:self.tableView];
24 |
25 | [self loadData];
26 |
27 |
28 |
29 | }
30 |
31 | - (void)viewDidLayoutSubviews {
32 | self.tableView.frame = self.view.bounds;
33 | }
34 |
35 |
36 |
37 | #pragma mark - delegate
38 | #pragma mark UITableViewDelegate,UITableViewDataSource
39 | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
40 | return 1;
41 | }
42 |
43 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
44 | return self.dataArr.count;
45 | }
46 |
47 | - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
48 | return 44;
49 | }
50 |
51 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
52 |
53 | KTModel *model = self.dataArr[indexPath.row];
54 |
55 | NSString * cellID = model.identifier;
56 | UITableViewCell * cell= [tableView dequeueReusableCellWithIdentifier:cellID];
57 |
58 | if ([cell respondsToSelector:@selector(configCellWithModel:)]) {
59 | [cell configCellWithModel:model];
60 | }
61 |
62 | return cell;
63 | }
64 |
65 |
66 | #pragma mark- networking
67 | - (void)loadData {
68 | for (int i = 0; i<40; i++) {
69 | int x = arc4random() % (3 - 0 + 1) + 0;
70 | KTModel *model = [KTModel new];
71 | model.title = [NSString stringWithFormat:@"第 %d 个 cell",i];
72 |
73 | NSString *cellID = [NSString stringWithFormat:@"cellID_0%d",x];
74 | model.identifier = cellID;
75 |
76 | [self.dataArr addObject:model];
77 | }
78 | [self.tableView reloadData];
79 | }
80 |
81 |
82 |
83 | #pragma mark - setter && getter
84 | - (UITableView *)tableView {
85 | if (!_tableView) {
86 | _tableView = [[UITableView alloc]initWithFrame:CGRectZero style:UITableViewStylePlain];
87 | _tableView.delegate = self;
88 | _tableView.dataSource = self;
89 |
90 | for (int i = 0; i<4; i++) {
91 | NSString *cellID = [NSString stringWithFormat:@"cellID_0%d",i];
92 | NSString *cellClass = [NSString stringWithFormat:@"KTTableViewCell0%d",i];
93 | [_tableView registerClass:NSClassFromString(cellClass) forCellReuseIdentifier:cellID];
94 | }
95 | }
96 | return _tableView;
97 | }
98 |
99 | - (NSMutableArray *)dataArr {
100 | if (!_dataArr) {
101 | _dataArr = [NSMutableArray new];
102 | }
103 | return _dataArr;
104 | }
105 |
106 |
107 | @end
108 |
--------------------------------------------------------------------------------
/ProtocolCellTest.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 0036AF4C224DC515003656B6 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 0036AF4B224DC515003656B6 /* AppDelegate.m */; };
11 | 0036AF4F224DC515003656B6 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0036AF4E224DC515003656B6 /* ViewController.m */; };
12 | 0036AF52224DC515003656B6 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0036AF50224DC515003656B6 /* Main.storyboard */; };
13 | 0036AF54224DC517003656B6 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0036AF53224DC517003656B6 /* Assets.xcassets */; };
14 | 0036AF57224DC517003656B6 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0036AF55224DC517003656B6 /* LaunchScreen.storyboard */; };
15 | 0036AF5A224DC517003656B6 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 0036AF59224DC517003656B6 /* main.m */; };
16 | 0036AF64224DC517003656B6 /* ProtocolCellTestTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 0036AF63224DC517003656B6 /* ProtocolCellTestTests.m */; };
17 | 0036AF6F224DC517003656B6 /* ProtocolCellTestUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 0036AF6E224DC517003656B6 /* ProtocolCellTestUITests.m */; };
18 | 0036AF9F224DF910003656B6 /* KTTableViewCell02.m in Sources */ = {isa = PBXBuildFile; fileRef = 0036AF98224DF910003656B6 /* KTTableViewCell02.m */; };
19 | 0036AFA0224DF910003656B6 /* KTTableViewCell01.m in Sources */ = {isa = PBXBuildFile; fileRef = 0036AF9A224DF910003656B6 /* KTTableViewCell01.m */; };
20 | 0036AFA1224DF910003656B6 /* KTTableViewCell00.m in Sources */ = {isa = PBXBuildFile; fileRef = 0036AF9C224DF910003656B6 /* KTTableViewCell00.m */; };
21 | 0036AFA2224DF910003656B6 /* KTTableViewCell03.m in Sources */ = {isa = PBXBuildFile; fileRef = 0036AF9E224DF910003656B6 /* KTTableViewCell03.m */; };
22 | 0036AFAE224DF9DC003656B6 /* ModuleACellConfigHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 0036AFAD224DF9DC003656B6 /* ModuleACellConfigHelper.m */; };
23 | 0036AFB1224DFBE0003656B6 /* KTModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 0036AFAF224DFBE0003656B6 /* KTModel.m */; };
24 | /* End PBXBuildFile section */
25 |
26 | /* Begin PBXContainerItemProxy section */
27 | 0036AF60224DC517003656B6 /* PBXContainerItemProxy */ = {
28 | isa = PBXContainerItemProxy;
29 | containerPortal = 0036AF3F224DC515003656B6 /* Project object */;
30 | proxyType = 1;
31 | remoteGlobalIDString = 0036AF46224DC515003656B6;
32 | remoteInfo = ProtocolCellTest;
33 | };
34 | 0036AF6B224DC517003656B6 /* PBXContainerItemProxy */ = {
35 | isa = PBXContainerItemProxy;
36 | containerPortal = 0036AF3F224DC515003656B6 /* Project object */;
37 | proxyType = 1;
38 | remoteGlobalIDString = 0036AF46224DC515003656B6;
39 | remoteInfo = ProtocolCellTest;
40 | };
41 | /* End PBXContainerItemProxy section */
42 |
43 | /* Begin PBXFileReference section */
44 | 0036AF47224DC515003656B6 /* ProtocolCellTest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ProtocolCellTest.app; sourceTree = BUILT_PRODUCTS_DIR; };
45 | 0036AF4A224DC515003656B6 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
46 | 0036AF4B224DC515003656B6 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
47 | 0036AF4D224DC515003656B6 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
48 | 0036AF4E224DC515003656B6 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
49 | 0036AF51224DC515003656B6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
50 | 0036AF53224DC517003656B6 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
51 | 0036AF56224DC517003656B6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
52 | 0036AF58224DC517003656B6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
53 | 0036AF59224DC517003656B6 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
54 | 0036AF5F224DC517003656B6 /* ProtocolCellTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ProtocolCellTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
55 | 0036AF63224DC517003656B6 /* ProtocolCellTestTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ProtocolCellTestTests.m; sourceTree = ""; };
56 | 0036AF65224DC517003656B6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
57 | 0036AF6A224DC517003656B6 /* ProtocolCellTestUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ProtocolCellTestUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
58 | 0036AF6E224DC517003656B6 /* ProtocolCellTestUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ProtocolCellTestUITests.m; sourceTree = ""; };
59 | 0036AF70224DC517003656B6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
60 | 0036AF97224DF910003656B6 /* KTTableViewCell00.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KTTableViewCell00.h; sourceTree = ""; };
61 | 0036AF98224DF910003656B6 /* KTTableViewCell02.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KTTableViewCell02.m; sourceTree = ""; };
62 | 0036AF99224DF910003656B6 /* KTTableViewCell03.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KTTableViewCell03.h; sourceTree = ""; };
63 | 0036AF9A224DF910003656B6 /* KTTableViewCell01.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KTTableViewCell01.m; sourceTree = ""; };
64 | 0036AF9B224DF910003656B6 /* KTTableViewCell02.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KTTableViewCell02.h; sourceTree = ""; };
65 | 0036AF9C224DF910003656B6 /* KTTableViewCell00.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KTTableViewCell00.m; sourceTree = ""; };
66 | 0036AF9D224DF910003656B6 /* KTTableViewCell01.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KTTableViewCell01.h; sourceTree = ""; };
67 | 0036AF9E224DF910003656B6 /* KTTableViewCell03.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KTTableViewCell03.m; sourceTree = ""; };
68 | 0036AFAC224DF9DC003656B6 /* ModuleACellConfigHelper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ModuleACellConfigHelper.h; sourceTree = ""; };
69 | 0036AFAD224DF9DC003656B6 /* ModuleACellConfigHelper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ModuleACellConfigHelper.m; sourceTree = ""; };
70 | 0036AFAF224DFBE0003656B6 /* KTModel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KTModel.m; sourceTree = ""; };
71 | 0036AFB0224DFBE0003656B6 /* KTModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KTModel.h; sourceTree = ""; };
72 | /* End PBXFileReference section */
73 |
74 | /* Begin PBXFrameworksBuildPhase section */
75 | 0036AF44224DC515003656B6 /* Frameworks */ = {
76 | isa = PBXFrameworksBuildPhase;
77 | buildActionMask = 2147483647;
78 | files = (
79 | );
80 | runOnlyForDeploymentPostprocessing = 0;
81 | };
82 | 0036AF5C224DC517003656B6 /* Frameworks */ = {
83 | isa = PBXFrameworksBuildPhase;
84 | buildActionMask = 2147483647;
85 | files = (
86 | );
87 | runOnlyForDeploymentPostprocessing = 0;
88 | };
89 | 0036AF67224DC517003656B6 /* Frameworks */ = {
90 | isa = PBXFrameworksBuildPhase;
91 | buildActionMask = 2147483647;
92 | files = (
93 | );
94 | runOnlyForDeploymentPostprocessing = 0;
95 | };
96 | /* End PBXFrameworksBuildPhase section */
97 |
98 | /* Begin PBXGroup section */
99 | 0036AF3E224DC515003656B6 = {
100 | isa = PBXGroup;
101 | children = (
102 | 0036AF49224DC515003656B6 /* ProtocolCellTest */,
103 | 0036AF62224DC517003656B6 /* ProtocolCellTestTests */,
104 | 0036AF6D224DC517003656B6 /* ProtocolCellTestUITests */,
105 | 0036AF48224DC515003656B6 /* Products */,
106 | );
107 | sourceTree = "";
108 | };
109 | 0036AF48224DC515003656B6 /* Products */ = {
110 | isa = PBXGroup;
111 | children = (
112 | 0036AF47224DC515003656B6 /* ProtocolCellTest.app */,
113 | 0036AF5F224DC517003656B6 /* ProtocolCellTestTests.xctest */,
114 | 0036AF6A224DC517003656B6 /* ProtocolCellTestUITests.xctest */,
115 | );
116 | name = Products;
117 | sourceTree = "";
118 | };
119 | 0036AF49224DC515003656B6 /* ProtocolCellTest */ = {
120 | isa = PBXGroup;
121 | children = (
122 | 0036AFAB224DF9C4003656B6 /* ModuleA */,
123 | 0036AF96224DF910003656B6 /* Cell */,
124 | 0036AF4A224DC515003656B6 /* AppDelegate.h */,
125 | 0036AF4B224DC515003656B6 /* AppDelegate.m */,
126 | 0036AF4D224DC515003656B6 /* ViewController.h */,
127 | 0036AF4E224DC515003656B6 /* ViewController.m */,
128 | 0036AF50224DC515003656B6 /* Main.storyboard */,
129 | 0036AF53224DC517003656B6 /* Assets.xcassets */,
130 | 0036AF55224DC517003656B6 /* LaunchScreen.storyboard */,
131 | 0036AF58224DC517003656B6 /* Info.plist */,
132 | 0036AF59224DC517003656B6 /* main.m */,
133 | );
134 | path = ProtocolCellTest;
135 | sourceTree = "";
136 | };
137 | 0036AF62224DC517003656B6 /* ProtocolCellTestTests */ = {
138 | isa = PBXGroup;
139 | children = (
140 | 0036AF63224DC517003656B6 /* ProtocolCellTestTests.m */,
141 | 0036AF65224DC517003656B6 /* Info.plist */,
142 | );
143 | path = ProtocolCellTestTests;
144 | sourceTree = "";
145 | };
146 | 0036AF6D224DC517003656B6 /* ProtocolCellTestUITests */ = {
147 | isa = PBXGroup;
148 | children = (
149 | 0036AF6E224DC517003656B6 /* ProtocolCellTestUITests.m */,
150 | 0036AF70224DC517003656B6 /* Info.plist */,
151 | );
152 | path = ProtocolCellTestUITests;
153 | sourceTree = "";
154 | };
155 | 0036AF96224DF910003656B6 /* Cell */ = {
156 | isa = PBXGroup;
157 | children = (
158 | 0036AF97224DF910003656B6 /* KTTableViewCell00.h */,
159 | 0036AF9C224DF910003656B6 /* KTTableViewCell00.m */,
160 | 0036AF9D224DF910003656B6 /* KTTableViewCell01.h */,
161 | 0036AF9A224DF910003656B6 /* KTTableViewCell01.m */,
162 | 0036AF9B224DF910003656B6 /* KTTableViewCell02.h */,
163 | 0036AF98224DF910003656B6 /* KTTableViewCell02.m */,
164 | 0036AF99224DF910003656B6 /* KTTableViewCell03.h */,
165 | 0036AF9E224DF910003656B6 /* KTTableViewCell03.m */,
166 | );
167 | path = Cell;
168 | sourceTree = "";
169 | };
170 | 0036AFAB224DF9C4003656B6 /* ModuleA */ = {
171 | isa = PBXGroup;
172 | children = (
173 | 0036AFB0224DFBE0003656B6 /* KTModel.h */,
174 | 0036AFAF224DFBE0003656B6 /* KTModel.m */,
175 | 0036AFAC224DF9DC003656B6 /* ModuleACellConfigHelper.h */,
176 | 0036AFAD224DF9DC003656B6 /* ModuleACellConfigHelper.m */,
177 | );
178 | path = ModuleA;
179 | sourceTree = "";
180 | };
181 | /* End PBXGroup section */
182 |
183 | /* Begin PBXNativeTarget section */
184 | 0036AF46224DC515003656B6 /* ProtocolCellTest */ = {
185 | isa = PBXNativeTarget;
186 | buildConfigurationList = 0036AF73224DC517003656B6 /* Build configuration list for PBXNativeTarget "ProtocolCellTest" */;
187 | buildPhases = (
188 | 0036AF43224DC515003656B6 /* Sources */,
189 | 0036AF44224DC515003656B6 /* Frameworks */,
190 | 0036AF45224DC515003656B6 /* Resources */,
191 | );
192 | buildRules = (
193 | );
194 | dependencies = (
195 | );
196 | name = ProtocolCellTest;
197 | productName = ProtocolCellTest;
198 | productReference = 0036AF47224DC515003656B6 /* ProtocolCellTest.app */;
199 | productType = "com.apple.product-type.application";
200 | };
201 | 0036AF5E224DC517003656B6 /* ProtocolCellTestTests */ = {
202 | isa = PBXNativeTarget;
203 | buildConfigurationList = 0036AF76224DC517003656B6 /* Build configuration list for PBXNativeTarget "ProtocolCellTestTests" */;
204 | buildPhases = (
205 | 0036AF5B224DC517003656B6 /* Sources */,
206 | 0036AF5C224DC517003656B6 /* Frameworks */,
207 | 0036AF5D224DC517003656B6 /* Resources */,
208 | );
209 | buildRules = (
210 | );
211 | dependencies = (
212 | 0036AF61224DC517003656B6 /* PBXTargetDependency */,
213 | );
214 | name = ProtocolCellTestTests;
215 | productName = ProtocolCellTestTests;
216 | productReference = 0036AF5F224DC517003656B6 /* ProtocolCellTestTests.xctest */;
217 | productType = "com.apple.product-type.bundle.unit-test";
218 | };
219 | 0036AF69224DC517003656B6 /* ProtocolCellTestUITests */ = {
220 | isa = PBXNativeTarget;
221 | buildConfigurationList = 0036AF79224DC517003656B6 /* Build configuration list for PBXNativeTarget "ProtocolCellTestUITests" */;
222 | buildPhases = (
223 | 0036AF66224DC517003656B6 /* Sources */,
224 | 0036AF67224DC517003656B6 /* Frameworks */,
225 | 0036AF68224DC517003656B6 /* Resources */,
226 | );
227 | buildRules = (
228 | );
229 | dependencies = (
230 | 0036AF6C224DC517003656B6 /* PBXTargetDependency */,
231 | );
232 | name = ProtocolCellTestUITests;
233 | productName = ProtocolCellTestUITests;
234 | productReference = 0036AF6A224DC517003656B6 /* ProtocolCellTestUITests.xctest */;
235 | productType = "com.apple.product-type.bundle.ui-testing";
236 | };
237 | /* End PBXNativeTarget section */
238 |
239 | /* Begin PBXProject section */
240 | 0036AF3F224DC515003656B6 /* Project object */ = {
241 | isa = PBXProject;
242 | attributes = {
243 | LastUpgradeCheck = 1010;
244 | ORGANIZATIONNAME = Klaus;
245 | TargetAttributes = {
246 | 0036AF46224DC515003656B6 = {
247 | CreatedOnToolsVersion = 10.1;
248 | };
249 | 0036AF5E224DC517003656B6 = {
250 | CreatedOnToolsVersion = 10.1;
251 | TestTargetID = 0036AF46224DC515003656B6;
252 | };
253 | 0036AF69224DC517003656B6 = {
254 | CreatedOnToolsVersion = 10.1;
255 | TestTargetID = 0036AF46224DC515003656B6;
256 | };
257 | };
258 | };
259 | buildConfigurationList = 0036AF42224DC515003656B6 /* Build configuration list for PBXProject "ProtocolCellTest" */;
260 | compatibilityVersion = "Xcode 9.3";
261 | developmentRegion = en;
262 | hasScannedForEncodings = 0;
263 | knownRegions = (
264 | en,
265 | Base,
266 | );
267 | mainGroup = 0036AF3E224DC515003656B6;
268 | productRefGroup = 0036AF48224DC515003656B6 /* Products */;
269 | projectDirPath = "";
270 | projectRoot = "";
271 | targets = (
272 | 0036AF46224DC515003656B6 /* ProtocolCellTest */,
273 | 0036AF5E224DC517003656B6 /* ProtocolCellTestTests */,
274 | 0036AF69224DC517003656B6 /* ProtocolCellTestUITests */,
275 | );
276 | };
277 | /* End PBXProject section */
278 |
279 | /* Begin PBXResourcesBuildPhase section */
280 | 0036AF45224DC515003656B6 /* Resources */ = {
281 | isa = PBXResourcesBuildPhase;
282 | buildActionMask = 2147483647;
283 | files = (
284 | 0036AF57224DC517003656B6 /* LaunchScreen.storyboard in Resources */,
285 | 0036AF54224DC517003656B6 /* Assets.xcassets in Resources */,
286 | 0036AF52224DC515003656B6 /* Main.storyboard in Resources */,
287 | );
288 | runOnlyForDeploymentPostprocessing = 0;
289 | };
290 | 0036AF5D224DC517003656B6 /* Resources */ = {
291 | isa = PBXResourcesBuildPhase;
292 | buildActionMask = 2147483647;
293 | files = (
294 | );
295 | runOnlyForDeploymentPostprocessing = 0;
296 | };
297 | 0036AF68224DC517003656B6 /* Resources */ = {
298 | isa = PBXResourcesBuildPhase;
299 | buildActionMask = 2147483647;
300 | files = (
301 | );
302 | runOnlyForDeploymentPostprocessing = 0;
303 | };
304 | /* End PBXResourcesBuildPhase section */
305 |
306 | /* Begin PBXSourcesBuildPhase section */
307 | 0036AF43224DC515003656B6 /* Sources */ = {
308 | isa = PBXSourcesBuildPhase;
309 | buildActionMask = 2147483647;
310 | files = (
311 | 0036AFB1224DFBE0003656B6 /* KTModel.m in Sources */,
312 | 0036AF9F224DF910003656B6 /* KTTableViewCell02.m in Sources */,
313 | 0036AFAE224DF9DC003656B6 /* ModuleACellConfigHelper.m in Sources */,
314 | 0036AFA0224DF910003656B6 /* KTTableViewCell01.m in Sources */,
315 | 0036AF4F224DC515003656B6 /* ViewController.m in Sources */,
316 | 0036AFA2224DF910003656B6 /* KTTableViewCell03.m in Sources */,
317 | 0036AF5A224DC517003656B6 /* main.m in Sources */,
318 | 0036AF4C224DC515003656B6 /* AppDelegate.m in Sources */,
319 | 0036AFA1224DF910003656B6 /* KTTableViewCell00.m in Sources */,
320 | );
321 | runOnlyForDeploymentPostprocessing = 0;
322 | };
323 | 0036AF5B224DC517003656B6 /* Sources */ = {
324 | isa = PBXSourcesBuildPhase;
325 | buildActionMask = 2147483647;
326 | files = (
327 | 0036AF64224DC517003656B6 /* ProtocolCellTestTests.m in Sources */,
328 | );
329 | runOnlyForDeploymentPostprocessing = 0;
330 | };
331 | 0036AF66224DC517003656B6 /* Sources */ = {
332 | isa = PBXSourcesBuildPhase;
333 | buildActionMask = 2147483647;
334 | files = (
335 | 0036AF6F224DC517003656B6 /* ProtocolCellTestUITests.m in Sources */,
336 | );
337 | runOnlyForDeploymentPostprocessing = 0;
338 | };
339 | /* End PBXSourcesBuildPhase section */
340 |
341 | /* Begin PBXTargetDependency section */
342 | 0036AF61224DC517003656B6 /* PBXTargetDependency */ = {
343 | isa = PBXTargetDependency;
344 | target = 0036AF46224DC515003656B6 /* ProtocolCellTest */;
345 | targetProxy = 0036AF60224DC517003656B6 /* PBXContainerItemProxy */;
346 | };
347 | 0036AF6C224DC517003656B6 /* PBXTargetDependency */ = {
348 | isa = PBXTargetDependency;
349 | target = 0036AF46224DC515003656B6 /* ProtocolCellTest */;
350 | targetProxy = 0036AF6B224DC517003656B6 /* PBXContainerItemProxy */;
351 | };
352 | /* End PBXTargetDependency section */
353 |
354 | /* Begin PBXVariantGroup section */
355 | 0036AF50224DC515003656B6 /* Main.storyboard */ = {
356 | isa = PBXVariantGroup;
357 | children = (
358 | 0036AF51224DC515003656B6 /* Base */,
359 | );
360 | name = Main.storyboard;
361 | sourceTree = "";
362 | };
363 | 0036AF55224DC517003656B6 /* LaunchScreen.storyboard */ = {
364 | isa = PBXVariantGroup;
365 | children = (
366 | 0036AF56224DC517003656B6 /* Base */,
367 | );
368 | name = LaunchScreen.storyboard;
369 | sourceTree = "";
370 | };
371 | /* End PBXVariantGroup section */
372 |
373 | /* Begin XCBuildConfiguration section */
374 | 0036AF71224DC517003656B6 /* Debug */ = {
375 | isa = XCBuildConfiguration;
376 | buildSettings = {
377 | ALWAYS_SEARCH_USER_PATHS = NO;
378 | CLANG_ANALYZER_NONNULL = YES;
379 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
380 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
381 | CLANG_CXX_LIBRARY = "libc++";
382 | CLANG_ENABLE_MODULES = YES;
383 | CLANG_ENABLE_OBJC_ARC = YES;
384 | CLANG_ENABLE_OBJC_WEAK = YES;
385 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
386 | CLANG_WARN_BOOL_CONVERSION = YES;
387 | CLANG_WARN_COMMA = YES;
388 | CLANG_WARN_CONSTANT_CONVERSION = YES;
389 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
390 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
391 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
392 | CLANG_WARN_EMPTY_BODY = YES;
393 | CLANG_WARN_ENUM_CONVERSION = YES;
394 | CLANG_WARN_INFINITE_RECURSION = YES;
395 | CLANG_WARN_INT_CONVERSION = YES;
396 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
397 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
398 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
399 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
400 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
401 | CLANG_WARN_STRICT_PROTOTYPES = YES;
402 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
403 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
404 | CLANG_WARN_UNREACHABLE_CODE = YES;
405 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
406 | CODE_SIGN_IDENTITY = "iPhone Developer";
407 | COPY_PHASE_STRIP = NO;
408 | DEBUG_INFORMATION_FORMAT = dwarf;
409 | ENABLE_STRICT_OBJC_MSGSEND = YES;
410 | ENABLE_TESTABILITY = YES;
411 | GCC_C_LANGUAGE_STANDARD = gnu11;
412 | GCC_DYNAMIC_NO_PIC = NO;
413 | GCC_NO_COMMON_BLOCKS = YES;
414 | GCC_OPTIMIZATION_LEVEL = 0;
415 | GCC_PREPROCESSOR_DEFINITIONS = (
416 | "DEBUG=1",
417 | "$(inherited)",
418 | );
419 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
420 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
421 | GCC_WARN_UNDECLARED_SELECTOR = YES;
422 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
423 | GCC_WARN_UNUSED_FUNCTION = YES;
424 | GCC_WARN_UNUSED_VARIABLE = YES;
425 | IPHONEOS_DEPLOYMENT_TARGET = 12.1;
426 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
427 | MTL_FAST_MATH = YES;
428 | ONLY_ACTIVE_ARCH = YES;
429 | SDKROOT = iphoneos;
430 | };
431 | name = Debug;
432 | };
433 | 0036AF72224DC517003656B6 /* Release */ = {
434 | isa = XCBuildConfiguration;
435 | buildSettings = {
436 | ALWAYS_SEARCH_USER_PATHS = NO;
437 | CLANG_ANALYZER_NONNULL = YES;
438 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
439 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
440 | CLANG_CXX_LIBRARY = "libc++";
441 | CLANG_ENABLE_MODULES = YES;
442 | CLANG_ENABLE_OBJC_ARC = YES;
443 | CLANG_ENABLE_OBJC_WEAK = YES;
444 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
445 | CLANG_WARN_BOOL_CONVERSION = YES;
446 | CLANG_WARN_COMMA = YES;
447 | CLANG_WARN_CONSTANT_CONVERSION = YES;
448 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
449 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
450 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
451 | CLANG_WARN_EMPTY_BODY = YES;
452 | CLANG_WARN_ENUM_CONVERSION = YES;
453 | CLANG_WARN_INFINITE_RECURSION = YES;
454 | CLANG_WARN_INT_CONVERSION = YES;
455 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
456 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
457 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
458 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
459 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
460 | CLANG_WARN_STRICT_PROTOTYPES = YES;
461 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
462 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
463 | CLANG_WARN_UNREACHABLE_CODE = YES;
464 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
465 | CODE_SIGN_IDENTITY = "iPhone Developer";
466 | COPY_PHASE_STRIP = NO;
467 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
468 | ENABLE_NS_ASSERTIONS = NO;
469 | ENABLE_STRICT_OBJC_MSGSEND = YES;
470 | GCC_C_LANGUAGE_STANDARD = gnu11;
471 | GCC_NO_COMMON_BLOCKS = YES;
472 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
473 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
474 | GCC_WARN_UNDECLARED_SELECTOR = YES;
475 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
476 | GCC_WARN_UNUSED_FUNCTION = YES;
477 | GCC_WARN_UNUSED_VARIABLE = YES;
478 | IPHONEOS_DEPLOYMENT_TARGET = 12.1;
479 | MTL_ENABLE_DEBUG_INFO = NO;
480 | MTL_FAST_MATH = YES;
481 | SDKROOT = iphoneos;
482 | VALIDATE_PRODUCT = YES;
483 | };
484 | name = Release;
485 | };
486 | 0036AF74224DC517003656B6 /* Debug */ = {
487 | isa = XCBuildConfiguration;
488 | buildSettings = {
489 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
490 | CODE_SIGN_STYLE = Automatic;
491 | DEVELOPMENT_TEAM = 5BVGD2SKB2;
492 | INFOPLIST_FILE = ProtocolCellTest/Info.plist;
493 | LD_RUNPATH_SEARCH_PATHS = (
494 | "$(inherited)",
495 | "@executable_path/Frameworks",
496 | );
497 | PRODUCT_BUNDLE_IDENTIFIER = Kirito.ProtocolCellTest;
498 | PRODUCT_NAME = "$(TARGET_NAME)";
499 | TARGETED_DEVICE_FAMILY = "1,2";
500 | };
501 | name = Debug;
502 | };
503 | 0036AF75224DC517003656B6 /* Release */ = {
504 | isa = XCBuildConfiguration;
505 | buildSettings = {
506 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
507 | CODE_SIGN_STYLE = Automatic;
508 | DEVELOPMENT_TEAM = 5BVGD2SKB2;
509 | INFOPLIST_FILE = ProtocolCellTest/Info.plist;
510 | LD_RUNPATH_SEARCH_PATHS = (
511 | "$(inherited)",
512 | "@executable_path/Frameworks",
513 | );
514 | PRODUCT_BUNDLE_IDENTIFIER = Kirito.ProtocolCellTest;
515 | PRODUCT_NAME = "$(TARGET_NAME)";
516 | TARGETED_DEVICE_FAMILY = "1,2";
517 | };
518 | name = Release;
519 | };
520 | 0036AF77224DC517003656B6 /* Debug */ = {
521 | isa = XCBuildConfiguration;
522 | buildSettings = {
523 | BUNDLE_LOADER = "$(TEST_HOST)";
524 | CODE_SIGN_STYLE = Automatic;
525 | DEVELOPMENT_TEAM = 5BVGD2SKB2;
526 | INFOPLIST_FILE = ProtocolCellTestTests/Info.plist;
527 | LD_RUNPATH_SEARCH_PATHS = (
528 | "$(inherited)",
529 | "@executable_path/Frameworks",
530 | "@loader_path/Frameworks",
531 | );
532 | PRODUCT_BUNDLE_IDENTIFIER = Kirito.ProtocolCellTestTests;
533 | PRODUCT_NAME = "$(TARGET_NAME)";
534 | TARGETED_DEVICE_FAMILY = "1,2";
535 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ProtocolCellTest.app/ProtocolCellTest";
536 | };
537 | name = Debug;
538 | };
539 | 0036AF78224DC517003656B6 /* Release */ = {
540 | isa = XCBuildConfiguration;
541 | buildSettings = {
542 | BUNDLE_LOADER = "$(TEST_HOST)";
543 | CODE_SIGN_STYLE = Automatic;
544 | DEVELOPMENT_TEAM = 5BVGD2SKB2;
545 | INFOPLIST_FILE = ProtocolCellTestTests/Info.plist;
546 | LD_RUNPATH_SEARCH_PATHS = (
547 | "$(inherited)",
548 | "@executable_path/Frameworks",
549 | "@loader_path/Frameworks",
550 | );
551 | PRODUCT_BUNDLE_IDENTIFIER = Kirito.ProtocolCellTestTests;
552 | PRODUCT_NAME = "$(TARGET_NAME)";
553 | TARGETED_DEVICE_FAMILY = "1,2";
554 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ProtocolCellTest.app/ProtocolCellTest";
555 | };
556 | name = Release;
557 | };
558 | 0036AF7A224DC517003656B6 /* Debug */ = {
559 | isa = XCBuildConfiguration;
560 | buildSettings = {
561 | CODE_SIGN_STYLE = Automatic;
562 | DEVELOPMENT_TEAM = 5BVGD2SKB2;
563 | INFOPLIST_FILE = ProtocolCellTestUITests/Info.plist;
564 | LD_RUNPATH_SEARCH_PATHS = (
565 | "$(inherited)",
566 | "@executable_path/Frameworks",
567 | "@loader_path/Frameworks",
568 | );
569 | PRODUCT_BUNDLE_IDENTIFIER = Kirito.ProtocolCellTestUITests;
570 | PRODUCT_NAME = "$(TARGET_NAME)";
571 | TARGETED_DEVICE_FAMILY = "1,2";
572 | TEST_TARGET_NAME = ProtocolCellTest;
573 | };
574 | name = Debug;
575 | };
576 | 0036AF7B224DC517003656B6 /* Release */ = {
577 | isa = XCBuildConfiguration;
578 | buildSettings = {
579 | CODE_SIGN_STYLE = Automatic;
580 | DEVELOPMENT_TEAM = 5BVGD2SKB2;
581 | INFOPLIST_FILE = ProtocolCellTestUITests/Info.plist;
582 | LD_RUNPATH_SEARCH_PATHS = (
583 | "$(inherited)",
584 | "@executable_path/Frameworks",
585 | "@loader_path/Frameworks",
586 | );
587 | PRODUCT_BUNDLE_IDENTIFIER = Kirito.ProtocolCellTestUITests;
588 | PRODUCT_NAME = "$(TARGET_NAME)";
589 | TARGETED_DEVICE_FAMILY = "1,2";
590 | TEST_TARGET_NAME = ProtocolCellTest;
591 | };
592 | name = Release;
593 | };
594 | /* End XCBuildConfiguration section */
595 |
596 | /* Begin XCConfigurationList section */
597 | 0036AF42224DC515003656B6 /* Build configuration list for PBXProject "ProtocolCellTest" */ = {
598 | isa = XCConfigurationList;
599 | buildConfigurations = (
600 | 0036AF71224DC517003656B6 /* Debug */,
601 | 0036AF72224DC517003656B6 /* Release */,
602 | );
603 | defaultConfigurationIsVisible = 0;
604 | defaultConfigurationName = Release;
605 | };
606 | 0036AF73224DC517003656B6 /* Build configuration list for PBXNativeTarget "ProtocolCellTest" */ = {
607 | isa = XCConfigurationList;
608 | buildConfigurations = (
609 | 0036AF74224DC517003656B6 /* Debug */,
610 | 0036AF75224DC517003656B6 /* Release */,
611 | );
612 | defaultConfigurationIsVisible = 0;
613 | defaultConfigurationName = Release;
614 | };
615 | 0036AF76224DC517003656B6 /* Build configuration list for PBXNativeTarget "ProtocolCellTestTests" */ = {
616 | isa = XCConfigurationList;
617 | buildConfigurations = (
618 | 0036AF77224DC517003656B6 /* Debug */,
619 | 0036AF78224DC517003656B6 /* Release */,
620 | );
621 | defaultConfigurationIsVisible = 0;
622 | defaultConfigurationName = Release;
623 | };
624 | 0036AF79224DC517003656B6 /* Build configuration list for PBXNativeTarget "ProtocolCellTestUITests" */ = {
625 | isa = XCConfigurationList;
626 | buildConfigurations = (
627 | 0036AF7A224DC517003656B6 /* Debug */,
628 | 0036AF7B224DC517003656B6 /* Release */,
629 | );
630 | defaultConfigurationIsVisible = 0;
631 | defaultConfigurationName = Release;
632 | };
633 | /* End XCConfigurationList section */
634 | };
635 | rootObject = 0036AF3F224DC515003656B6 /* Project object */;
636 | }
637 |
--------------------------------------------------------------------------------