Commit 4d1ebc9c26ef4de6421b9250ab6e92282a002428

Authored by zhangxiaowen
1 parent b90a904a

no message

Showing 42 changed files with 1691 additions and 2 deletions
CNLiveCustomControl.podspec 0 → 100644
  1 +#
  2 +# Be sure to run `pod lib lint CNLiveCustomControl.podspec' to ensure this is a
  3 +# valid spec before submitting.
  4 +#
  5 +# Any lines starting with a # are optional, but their use is encouraged
  6 +# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
  7 +#
  8 +
  9 +Pod::Spec.new do |s|
  10 + s.name = 'CNLiveCustomControl'
  11 + s.version = '0.0.1'
  12 + s.summary = 'CNLiveCustomControl'
  13 +
  14 +# This description is used to generate tags and improve search results.
  15 +# * Think: What does it do? Why did you write it? What is the focus?
  16 +# * Try to keep it short, snappy and to the point.
  17 +# * Write the description between the DESC delimiters below.
  18 +# * Finally, don't worry about the indent, CocoaPods strips it!
  19 +
  20 + s.description = <<-DESC
  21 +TODO: 网家家-自定义控件.
  22 + DESC
  23 +
  24 + s.homepage = 'http://bj.gitlab.cnlive.com/ios-team/CNLiveCustomControl'
  25 + # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  26 + s.license = { :type => 'MIT', :file => 'LICENSE' }
  27 + s.author = { '153993236@qq.com' => 'zhangxiaowen@cnlive.com' }
  28 + s.source = { :git => 'http://bj.gitlab.cnlive.com/ios-team/CNLiveCustomControl.git', :tag => s.version.to_s }
  29 + # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
  30 +
  31 + s.ios.deployment_target = '9.0'
  32 +
  33 + s.source_files = 'CNLiveCustomControl/Classes/CNLiveCustomControl.h'
  34 +
  35 + # 倒计时按钮
  36 + s.subspec 'Button' do |ss|
  37 + ss.source_files = 'CNLiveCustomControl/Classes/Button/*'
  38 + end
  39 +
  40 + # 导航栏
  41 + s.subspec 'NavigationBar' do |ss|
  42 + ss.source_files = 'CNLiveCustomControl/Classes/NavigationBar/*'
  43 + ss.resource_bundles = {
  44 + 'CNLiveCustomControl' => ['CNLiveCustomControl/Assets/NavigationBar/NavigationBar.xcassets']
  45 + }
  46 + ss.dependency 'CNLiveTripartiteManagement/QMUIKit'
  47 + # 分类
  48 + ss.dependency 'CNLiveCategory'
  49 + end
  50 +
  51 + # s.resource_bundles = {
  52 + # 'CNLiveCustomControl' => ['CNLiveCustomControl/Assets/*.png']
  53 + # }
  54 +
  55 + # s.public_header_files = 'Pod/Classes/**/*.h'
  56 + # s.frameworks = 'UIKit', 'MapKit'
  57 + # s.dependency 'AFNetworking', '~> 2.3'
  58 +end
... ...
CNLiveCustomControl/Assets/.gitkeep 0 → 100644
CNLiveCustomControl/Assets/NavigationBar/NavigationBar.xcassets/Contents.json 0 → 100644
  1 +{
  2 + "info" : {
  3 + "version" : 1,
  4 + "author" : "xcode"
  5 + }
  6 +}
0 7 \ No newline at end of file
... ...
CNLiveCustomControl/Assets/NavigationBar/NavigationBar.xcassets/mine_back_black_b.imageset/Contents.json 0 → 100644
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "universal",
  5 + "scale" : "1x"
  6 + },
  7 + {
  8 + "idiom" : "universal",
  9 + "filename" : "mine_back_black_b@2x.png",
  10 + "scale" : "2x"
  11 + },
  12 + {
  13 + "idiom" : "universal",
  14 + "filename" : "mine_back_black_b@3x.png",
  15 + "scale" : "3x"
  16 + }
  17 + ],
  18 + "info" : {
  19 + "version" : 1,
  20 + "author" : "xcode"
  21 + }
  22 +}
0 23 \ No newline at end of file
... ...
CNLiveCustomControl/Assets/NavigationBar/NavigationBar.xcassets/mine_back_black_b.imageset/mine_back_black_b@2x.png 0 → 100644

1.49 KB

CNLiveCustomControl/Assets/NavigationBar/NavigationBar.xcassets/mine_back_black_b.imageset/mine_back_black_b@3x.png 0 → 100644

1.79 KB

CNLiveCustomControl/Assets/NavigationBar/NavigationBar.xcassets/mine_back_white_b.imageset/Contents.json 0 → 100644
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "universal",
  5 + "scale" : "1x"
  6 + },
  7 + {
  8 + "idiom" : "universal",
  9 + "filename" : "mine_back_white_b@2x.png",
  10 + "scale" : "2x"
  11 + },
  12 + {
  13 + "idiom" : "universal",
  14 + "filename" : "mine_back_white_b@3x.png",
  15 + "scale" : "3x"
  16 + }
  17 + ],
  18 + "info" : {
  19 + "version" : 1,
  20 + "author" : "xcode"
  21 + }
  22 +}
0 23 \ No newline at end of file
... ...
CNLiveCustomControl/Assets/NavigationBar/NavigationBar.xcassets/mine_back_white_b.imageset/mine_back_white_b@2x.png 0 → 100644

2.03 KB

CNLiveCustomControl/Assets/NavigationBar/NavigationBar.xcassets/mine_back_white_b.imageset/mine_back_white_b@3x.png 0 → 100644

2.28 KB

CNLiveCustomControl/Assets/NavigationBar/NavigationBar.xcassets/mine_code_more.imageset/Contents.json 0 → 100644
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "universal",
  5 + "scale" : "1x"
  6 + },
  7 + {
  8 + "idiom" : "universal",
  9 + "filename" : "mine_code_more@2x.png",
  10 + "scale" : "2x"
  11 + },
  12 + {
  13 + "idiom" : "universal",
  14 + "filename" : "mine_code_more@3x.png",
  15 + "scale" : "3x"
  16 + }
  17 + ],
  18 + "info" : {
  19 + "version" : 1,
  20 + "author" : "xcode"
  21 + }
  22 +}
0 23 \ No newline at end of file
... ...
CNLiveCustomControl/Assets/NavigationBar/NavigationBar.xcassets/mine_code_more.imageset/mine_code_more@2x.png 0 → 100644

205 Bytes

CNLiveCustomControl/Assets/NavigationBar/NavigationBar.xcassets/mine_code_more.imageset/mine_code_more@3x.png 0 → 100644

962 Bytes

CNLiveCustomControl/Assets/NavigationBar/NavigationBar.xcassets/mine_info_set.imageset/Contents.json 0 → 100644
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "universal",
  5 + "scale" : "1x"
  6 + },
  7 + {
  8 + "idiom" : "universal",
  9 + "filename" : "mine_info_set@2x.png",
  10 + "scale" : "2x"
  11 + },
  12 + {
  13 + "idiom" : "universal",
  14 + "filename" : "mine_info_set@3x.png",
  15 + "scale" : "3x"
  16 + }
  17 + ],
  18 + "info" : {
  19 + "version" : 1,
  20 + "author" : "xcode"
  21 + }
  22 +}
0 23 \ No newline at end of file
... ...
CNLiveCustomControl/Assets/NavigationBar/NavigationBar.xcassets/mine_info_set.imageset/mine_info_set@2x.png 0 → 100644

238 Bytes

CNLiveCustomControl/Assets/NavigationBar/NavigationBar.xcassets/mine_info_set.imageset/mine_info_set@3x.png 0 → 100644

434 Bytes

CNLiveCustomControl/Classes/.gitkeep 0 → 100644
CNLiveCustomControl/Classes/Button/CNLiveCountDownButton.h 0 → 100644
  1 +//
  2 +// XWCountDownButton.h
  3 +// CNLiveCustomControl
  4 +//
  5 +// Created by 153993236@qq.com on 11/12/2019.
  6 +// Copyright (c) 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +/**
  10 + * 倒计时按钮
  11 + */
  12 +#import <UIKit/UIKit.h>
  13 +
  14 +NS_ASSUME_NONNULL_BEGIN
  15 +
  16 +@class CNLiveCountDownButton;
  17 +
  18 +@protocol CNLiveCountDownButtonDataSource <NSObject>
  19 +// 设置起始倒计时秒数
  20 +- (NSInteger)startCountDownNumOfCountDownButton:(CNLiveCountDownButton *)button;
  21 +
  22 +@end
  23 +
  24 +@protocol CNLiveCountDownButtonDelegate <NSObject>
  25 +// 倒计时按钮点击时回调
  26 +- (void)countDownButtonDidClick:(CNLiveCountDownButton *)button;
  27 +// 倒计时进行中的回调
  28 +- (void)countDownButtonDidCountDown:(CNLiveCountDownButton *)button countDownNum:(NSInteger)countDownNum;
  29 +// 倒计时结束时的回调
  30 +- (void)countDownButtonDidEndCountDown:(CNLiveCountDownButton *)button;
  31 +
  32 +@end
  33 +
  34 +@interface CNLiveCountDownButton : UIButton
  35 +
  36 +@property (nonatomic, weak) id <CNLiveCountDownButtonDataSource> dataSource;
  37 +@property (nonatomic, weak) id <CNLiveCountDownButtonDelegate> delegate;
  38 +
  39 +/** 开始倒计时 */
  40 +- (void)startCountDown;
  41 +/** 释放timer */
  42 +- (void)releaseTimer;
  43 +
  44 +@end
  45 +
  46 +NS_ASSUME_NONNULL_END
... ...
CNLiveCustomControl/Classes/Button/CNLiveCountDownButton.m 0 → 100644
  1 +//
  2 +// CNLiveCountDownButton.m
  3 +// CNLiveCustomControl
  4 +//
  5 +// Created by 153993236@qq.com on 11/12/2019.
  6 +// Copyright (c) 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveCountDownButton.h"
  10 +@interface CNLiveCountDownButton()
  11 +@property (nonatomic, strong) NSTimer *timer;
  12 +
  13 +@end
  14 +
  15 +@implementation CNLiveCountDownButton{
  16 + // 剩余倒计时
  17 + NSInteger _countDownNum;
  18 +}
  19 +
  20 +- (instancetype)initWithFrame:(CGRect)frame {
  21 + if (self = [super initWithFrame:frame]) {
  22 + [self addTarget:self action:@selector(onClick) forControlEvents:UIControlEventTouchUpInside];
  23 + }
  24 + return self;
  25 +}
  26 +
  27 +// 按钮点击
  28 +- (void)onClick {
  29 + if ([self.dataSource respondsToSelector:@selector(startCountDownNumOfCountDownButton:)]) {
  30 + _countDownNum = [self.dataSource startCountDownNumOfCountDownButton:self];
  31 + }
  32 + if ([self.delegate respondsToSelector:@selector(countDownButtonDidClick:)]) {
  33 + [self.delegate countDownButtonDidClick:self];
  34 + }
  35 +}
  36 +
  37 +// 开始倒计时
  38 +- (void)startCountDown {
  39 + if (self.timer) {
  40 + [self releaseTimer];
  41 + }
  42 +
  43 + self.timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(refreshButton) userInfo:nil repeats:YES];
  44 + [[NSRunLoop currentRunLoop] addTimer:self.timer forMode:NSRunLoopCommonModes];
  45 +}
  46 +
  47 +// 刷新按钮
  48 +- (void)refreshButton {
  49 + _countDownNum --;
  50 +
  51 + if ([self.delegate respondsToSelector:@selector(countDownButtonDidCountDown:countDownNum:)]) {
  52 + [self.delegate countDownButtonDidCountDown:self countDownNum:_countDownNum];
  53 + }
  54 +
  55 + if (_countDownNum == 0) {
  56 + [self releaseTimer];
  57 + if ([self.delegate respondsToSelector:@selector(countDownButtonDidEndCountDown:)]) {
  58 + [self.delegate countDownButtonDidEndCountDown:self];
  59 + }
  60 + }
  61 +}
  62 +
  63 +- (void)releaseTimer {
  64 + if (self.timer) {
  65 + [self.timer invalidate];
  66 + self.timer = nil;
  67 + }
  68 +}
  69 +
  70 +- (void)dealloc {
  71 + NSLog(@"倒计时按钮已释放");
  72 +}
  73 +
  74 +@end
... ...
CNLiveCustomControl/Classes/CNLiveCustomControl.h 0 → 100644
  1 +//
  2 +// CNLiveCustomControl.h
  3 +// CNLiveCustomControl
  4 +//
  5 +// Created by CNLive-zxw on 2019/5/5.
  6 +// Copyright © 2019 CNLive. All rights reserved.
  7 +//
  8 +
  9 +#ifndef CNLiveCustomControl_h
  10 +#define CNLiveCustomControl_h
  11 +
  12 +//Button
  13 +#import "CNLiveCountDownButton.h"
  14 +
  15 +//NavigationBar
  16 +#import "CNLiveNavigationBar.h"
  17 +
  18 +
  19 +#endif /* CNLiveCustomControl_h */
... ...
CNLiveCustomControl/Classes/NavigationBar/CNLiveNavigationBar.h 0 → 100644
  1 +//
  2 +// CNLiveSettingNavigationBar.m
  3 +// CNLiveCustomControl
  4 +//
  5 +// Created by 153993236@qq.com on 11/12/2019.
  6 +// Copyright (c) 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import <UIKit/UIKit.h>
  10 +
  11 +NS_ASSUME_NONNULL_BEGIN
  12 +
  13 +@interface CNLiveNavigationBar : UIView
  14 +
  15 +@property (nonatomic, copy) void(^onClickLeftButton)(void);
  16 +@property (nonatomic, copy) void(^onClickRightButton)(void);
  17 +
  18 +// 左边按钮
  19 +@property (nonatomic, strong) UIButton *left;
  20 +
  21 +// 标题
  22 +@property (nonatomic, strong) UILabel *title;
  23 +
  24 +// 右边按钮图片
  25 +@property (nonatomic, strong) UIImage *rightImage;
  26 +// 右边按钮文字
  27 +@property (nonatomic, copy) NSString *rightTitle;
  28 +
  29 +
  30 ++ (instancetype)navigationBar;
  31 +
  32 +@end
  33 +
  34 +NS_ASSUME_NONNULL_END
... ...
CNLiveCustomControl/Classes/NavigationBar/CNLiveNavigationBar.m 0 → 100644
  1 +//
  2 +// CNLiveNavigationBar.m
  3 +// CNLiveCustomControl
  4 +//
  5 +// Created by 153993236@qq.com on 11/12/2019.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveNavigationBar.h"
  10 +#import "QMUIKit.h"
  11 +#import "CNLiveCategory.h"
  12 +
  13 +@interface CNLiveNavigationBar ()
  14 +@property (nonatomic, strong) UIView *navView;
  15 +@property (nonatomic, strong) UIButton *right;
  16 +
  17 +@end
  18 +
  19 +@implementation CNLiveNavigationBar
  20 +static const NSInteger margin = 15;
  21 +#pragma mark - 初始化
  22 ++ (instancetype)navigationBar {
  23 + CNLiveNavigationBar *navigationBar = [[self alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, NavigationContentTop)];
  24 + return navigationBar;
  25 +}
  26 +
  27 +- (instancetype)init{
  28 + self = [super init];
  29 + if(self){
  30 + self.backgroundColor = [UIColor whiteColor];
  31 + [self createSubViews];
  32 + }
  33 + return self;
  34 +}
  35 +
  36 +- (instancetype)initWithFrame:(CGRect)frame{
  37 + self = [super initWithFrame:frame];
  38 + if(self){
  39 + self.backgroundColor = [UIColor whiteColor];
  40 + [self createSubViews];
  41 + }
  42 + return self;
  43 +}
  44 +
  45 +- (void)dealloc {
  46 + NSLog(@"CNLiveNavigationBar -- dealloc");
  47 +}
  48 +
  49 +- (void)createSubViews {
  50 + [self addSubview:self.navView];
  51 + [self addSubview:self.left];
  52 + [self addSubview:self.title];
  53 + [self addSubview:self.right];
  54 +}
  55 +
  56 +#pragma mark - Setter方法
  57 +- (void)setRightTitle:(NSString *)rightTitle{
  58 + _rightTitle = rightTitle;
  59 + if(rightTitle&&![rightTitle isEqualToString:@""]){
  60 + _right.hidden = NO;
  61 + [_right setTitle:rightTitle forState:UIControlStateNormal];
  62 + }
  63 +
  64 +}
  65 +
  66 +- (void)setRightImage:(UIImage *)rightImage{
  67 + _rightImage = rightImage;
  68 + if(rightImage){
  69 + _right.hidden = NO;
  70 + [_right setImage:rightImage forState:UIControlStateNormal];
  71 + }
  72 +
  73 +}
  74 +
  75 +/*
  76 + // Only override drawRect: if you perform custom drawing.
  77 + // An empty implementation adversely affects performance during animation.
  78 + - (void)drawRect:(CGRect)rect {
  79 + // Drawing code
  80 + }
  81 + */
  82 +
  83 +#pragma mark - 响应方法
  84 +- (void)leftDidClicked:(UIButton *)btn{
  85 + if (self.onClickLeftButton) {
  86 + self.onClickLeftButton();
  87 + }
  88 +}
  89 +
  90 +- (void)rightDidClicked:(UIButton *)btn{
  91 + if (self.onClickRightButton) {
  92 + self.onClickRightButton();
  93 + }
  94 +}
  95 +
  96 +#pragma mark - 懒加载
  97 +- (UIView *)navView {
  98 + if (!_navView) {
  99 + _navView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, NavigationContentTop)];
  100 + _navView.backgroundColor = [UIColor clearColor];
  101 + }
  102 + return _navView;
  103 +}
  104 +
  105 +- (UIButton *)left {
  106 + if (!_left) {
  107 + _left= [UIButton buttonWithType:UIButtonTypeCustom];
  108 + _left.adjustsImageWhenHighlighted = NO;
  109 + _left.frame = CGRectMake(margin, StatusBarHeight, NavigationBarHeight, NavigationBarHeight);
  110 + UIImage *image = [self getImageWithImageName:@"mine_back_black_b" bundleName:@"CNLiveCustomControl" targetClass:[self class]];
  111 + [_left setImage:[image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] forState:UIControlStateNormal];
  112 + _left.titleLabel.font = [UIFont systemFontOfSize:15];
  113 + [_left setContentHorizontalAlignment:UIControlContentHorizontalAlignmentLeft];
  114 + [_left addTarget:self action:@selector(leftDidClicked:) forControlEvents:UIControlEventTouchUpInside];
  115 + }
  116 + return _left;
  117 +}
  118 +
  119 +- (UILabel *)title {
  120 + if (!_title) {
  121 + _title = [[UILabel alloc] initWithFrame:CGRectMake(margin+NavigationBarHeight, StatusBarHeight, SCREEN_WIDTH-2*(margin+NavigationBarHeight), NavigationBarHeight)];
  122 + _title.font = [UIFont systemFontOfSize:18];
  123 + _title.textColor = [UIColor blackColor];
  124 + _title.textAlignment = NSTextAlignmentCenter;
  125 + }
  126 + return _title;
  127 +}
  128 +
  129 +- (UIButton *)right {
  130 + if (!_right) {
  131 + _right = [UIButton buttonWithType:UIButtonTypeCustom];
  132 + _right.frame = CGRectMake(SCREEN_WIDTH-NavigationBarHeight-margin, StatusBarHeight, NavigationBarHeight, NavigationBarHeight);
  133 + [_right setContentHorizontalAlignment:UIControlContentHorizontalAlignmentRight];
  134 + _right.adjustsImageWhenHighlighted = NO;
  135 + _right.titleLabel.font = [UIFont systemFontOfSize:15];
  136 + [_right setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
  137 + [_right addTarget:self action:@selector(rightDidClicked:) forControlEvents:UIControlEventTouchUpInside];
  138 + _right.hidden = YES;
  139 + }
  140 + return _right;
  141 +}
  142 +
  143 +@end
... ...
Example/CNLiveCustomControl.xcodeproj/project.pbxproj 0 → 100644
  1 +// !$*UTF8*$!
  2 +{
  3 + archiveVersion = 1;
  4 + classes = {
  5 + };
  6 + objectVersion = 46;
  7 + objects = {
  8 +
  9 +/* Begin PBXBuildFile section */
  10 + 12A3A3310E8FE73F35CECD1B /* Pods_CNLiveCustomControl_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5B7FC47FF7C455EE1FBE280B /* Pods_CNLiveCustomControl_Example.framework */; };
  11 + 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
  12 + 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; };
  13 + 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
  14 + 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; };
  15 + 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; };
  16 + 6003F59E195388D20070C39A /* CNLIVEAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* CNLIVEAppDelegate.m */; };
  17 + 6003F5A7195388D20070C39A /* CNLIVEViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* CNLIVEViewController.m */; };
  18 + 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; };
  19 + 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; };
  20 + 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
  21 + 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
  22 + 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; };
  23 + 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; };
  24 + 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */; };
  25 + 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; };
  26 + C4232E371A27366A25A59E89 /* Pods_CNLiveCustomControl_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 43B3E60F1A8A225D7EF9ABF1 /* Pods_CNLiveCustomControl_Tests.framework */; };
  27 +/* End PBXBuildFile section */
  28 +
  29 +/* Begin PBXContainerItemProxy section */
  30 + 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = {
  31 + isa = PBXContainerItemProxy;
  32 + containerPortal = 6003F582195388D10070C39A /* Project object */;
  33 + proxyType = 1;
  34 + remoteGlobalIDString = 6003F589195388D20070C39A;
  35 + remoteInfo = CNLiveCustomControl;
  36 + };
  37 +/* End PBXContainerItemProxy section */
  38 +
  39 +/* Begin PBXFileReference section */
  40 + 43B3E60F1A8A225D7EF9ABF1 /* Pods_CNLiveCustomControl_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CNLiveCustomControl_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
  41 + 493F170E54A6352FBF0F4EAF /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
  42 + 4D20F9B6E89E22417E0A8A81 /* Pods-CNLiveCustomControl_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveCustomControl_Tests.release.xcconfig"; path = "Target Support Files/Pods-CNLiveCustomControl_Tests/Pods-CNLiveCustomControl_Tests.release.xcconfig"; sourceTree = "<group>"; };
  43 + 51A6C14451C5E4DCAEA822BD /* CNLiveCustomControl.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = CNLiveCustomControl.podspec; path = ../CNLiveCustomControl.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
  44 + 5A0724CA917A291E36551AAC /* Pods-CNLiveCustomControl_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveCustomControl_Example.debug.xcconfig"; path = "Target Support Files/Pods-CNLiveCustomControl_Example/Pods-CNLiveCustomControl_Example.debug.xcconfig"; sourceTree = "<group>"; };
  45 + 5B7FC47FF7C455EE1FBE280B /* Pods_CNLiveCustomControl_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CNLiveCustomControl_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
  46 + 6003F58A195388D20070C39A /* CNLiveCustomControl_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CNLiveCustomControl_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
  47 + 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
  48 + 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
  49 + 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
  50 + 6003F595195388D20070C39A /* CNLiveCustomControl-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "CNLiveCustomControl-Info.plist"; sourceTree = "<group>"; };
  51 + 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
  52 + 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
  53 + 6003F59B195388D20070C39A /* CNLiveCustomControl-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CNLiveCustomControl-Prefix.pch"; sourceTree = "<group>"; };
  54 + 6003F59C195388D20070C39A /* CNLIVEAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLIVEAppDelegate.h; sourceTree = "<group>"; };
  55 + 6003F59D195388D20070C39A /* CNLIVEAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLIVEAppDelegate.m; sourceTree = "<group>"; };
  56 + 6003F5A5195388D20070C39A /* CNLIVEViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLIVEViewController.h; sourceTree = "<group>"; };
  57 + 6003F5A6195388D20070C39A /* CNLIVEViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLIVEViewController.m; sourceTree = "<group>"; };
  58 + 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
  59 + 6003F5AE195388D20070C39A /* CNLiveCustomControl_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CNLiveCustomControl_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
  60 + 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
  61 + 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = "<group>"; };
  62 + 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
  63 + 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = "<group>"; };
  64 + 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = "<group>"; };
  65 + 71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
  66 + 7247E46C71F22F97DFFB8FF6 /* Pods-CNLiveCustomControl_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveCustomControl_Example.release.xcconfig"; path = "Target Support Files/Pods-CNLiveCustomControl_Example/Pods-CNLiveCustomControl_Example.release.xcconfig"; sourceTree = "<group>"; };
  67 + 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
  68 + D5427E9B36B82334013EE571 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
  69 + DC306F382A3CFCA5A281A1EA /* Pods-CNLiveCustomControl_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveCustomControl_Tests.debug.xcconfig"; path = "Target Support Files/Pods-CNLiveCustomControl_Tests/Pods-CNLiveCustomControl_Tests.debug.xcconfig"; sourceTree = "<group>"; };
  70 +/* End PBXFileReference section */
  71 +
  72 +/* Begin PBXFrameworksBuildPhase section */
  73 + 6003F587195388D20070C39A /* Frameworks */ = {
  74 + isa = PBXFrameworksBuildPhase;
  75 + buildActionMask = 2147483647;
  76 + files = (
  77 + 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */,
  78 + 6003F592195388D20070C39A /* UIKit.framework in Frameworks */,
  79 + 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */,
  80 + 12A3A3310E8FE73F35CECD1B /* Pods_CNLiveCustomControl_Example.framework in Frameworks */,
  81 + );
  82 + runOnlyForDeploymentPostprocessing = 0;
  83 + };
  84 + 6003F5AB195388D20070C39A /* Frameworks */ = {
  85 + isa = PBXFrameworksBuildPhase;
  86 + buildActionMask = 2147483647;
  87 + files = (
  88 + 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */,
  89 + 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */,
  90 + 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */,
  91 + C4232E371A27366A25A59E89 /* Pods_CNLiveCustomControl_Tests.framework in Frameworks */,
  92 + );
  93 + runOnlyForDeploymentPostprocessing = 0;
  94 + };
  95 +/* End PBXFrameworksBuildPhase section */
  96 +
  97 +/* Begin PBXGroup section */
  98 + 3AE9FFAF82786179648B5416 /* Pods */ = {
  99 + isa = PBXGroup;
  100 + children = (
  101 + 5A0724CA917A291E36551AAC /* Pods-CNLiveCustomControl_Example.debug.xcconfig */,
  102 + 7247E46C71F22F97DFFB8FF6 /* Pods-CNLiveCustomControl_Example.release.xcconfig */,
  103 + DC306F382A3CFCA5A281A1EA /* Pods-CNLiveCustomControl_Tests.debug.xcconfig */,
  104 + 4D20F9B6E89E22417E0A8A81 /* Pods-CNLiveCustomControl_Tests.release.xcconfig */,
  105 + );
  106 + path = Pods;
  107 + sourceTree = "<group>";
  108 + };
  109 + 6003F581195388D10070C39A = {
  110 + isa = PBXGroup;
  111 + children = (
  112 + 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */,
  113 + 6003F593195388D20070C39A /* Example for CNLiveCustomControl */,
  114 + 6003F5B5195388D20070C39A /* Tests */,
  115 + 6003F58C195388D20070C39A /* Frameworks */,
  116 + 6003F58B195388D20070C39A /* Products */,
  117 + 3AE9FFAF82786179648B5416 /* Pods */,
  118 + );
  119 + sourceTree = "<group>";
  120 + };
  121 + 6003F58B195388D20070C39A /* Products */ = {
  122 + isa = PBXGroup;
  123 + children = (
  124 + 6003F58A195388D20070C39A /* CNLiveCustomControl_Example.app */,
  125 + 6003F5AE195388D20070C39A /* CNLiveCustomControl_Tests.xctest */,
  126 + );
  127 + name = Products;
  128 + sourceTree = "<group>";
  129 + };
  130 + 6003F58C195388D20070C39A /* Frameworks */ = {
  131 + isa = PBXGroup;
  132 + children = (
  133 + 6003F58D195388D20070C39A /* Foundation.framework */,
  134 + 6003F58F195388D20070C39A /* CoreGraphics.framework */,
  135 + 6003F591195388D20070C39A /* UIKit.framework */,
  136 + 6003F5AF195388D20070C39A /* XCTest.framework */,
  137 + 5B7FC47FF7C455EE1FBE280B /* Pods_CNLiveCustomControl_Example.framework */,
  138 + 43B3E60F1A8A225D7EF9ABF1 /* Pods_CNLiveCustomControl_Tests.framework */,
  139 + );
  140 + name = Frameworks;
  141 + sourceTree = "<group>";
  142 + };
  143 + 6003F593195388D20070C39A /* Example for CNLiveCustomControl */ = {
  144 + isa = PBXGroup;
  145 + children = (
  146 + 6003F59C195388D20070C39A /* CNLIVEAppDelegate.h */,
  147 + 6003F59D195388D20070C39A /* CNLIVEAppDelegate.m */,
  148 + 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */,
  149 + 6003F5A5195388D20070C39A /* CNLIVEViewController.h */,
  150 + 6003F5A6195388D20070C39A /* CNLIVEViewController.m */,
  151 + 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */,
  152 + 6003F5A8195388D20070C39A /* Images.xcassets */,
  153 + 6003F594195388D20070C39A /* Supporting Files */,
  154 + );
  155 + name = "Example for CNLiveCustomControl";
  156 + path = CNLiveCustomControl;
  157 + sourceTree = "<group>";
  158 + };
  159 + 6003F594195388D20070C39A /* Supporting Files */ = {
  160 + isa = PBXGroup;
  161 + children = (
  162 + 6003F595195388D20070C39A /* CNLiveCustomControl-Info.plist */,
  163 + 6003F596195388D20070C39A /* InfoPlist.strings */,
  164 + 6003F599195388D20070C39A /* main.m */,
  165 + 6003F59B195388D20070C39A /* CNLiveCustomControl-Prefix.pch */,
  166 + );
  167 + name = "Supporting Files";
  168 + sourceTree = "<group>";
  169 + };
  170 + 6003F5B5195388D20070C39A /* Tests */ = {
  171 + isa = PBXGroup;
  172 + children = (
  173 + 6003F5BB195388D20070C39A /* Tests.m */,
  174 + 6003F5B6195388D20070C39A /* Supporting Files */,
  175 + );
  176 + path = Tests;
  177 + sourceTree = "<group>";
  178 + };
  179 + 6003F5B6195388D20070C39A /* Supporting Files */ = {
  180 + isa = PBXGroup;
  181 + children = (
  182 + 6003F5B7195388D20070C39A /* Tests-Info.plist */,
  183 + 6003F5B8195388D20070C39A /* InfoPlist.strings */,
  184 + 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */,
  185 + );
  186 + name = "Supporting Files";
  187 + sourceTree = "<group>";
  188 + };
  189 + 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = {
  190 + isa = PBXGroup;
  191 + children = (
  192 + 51A6C14451C5E4DCAEA822BD /* CNLiveCustomControl.podspec */,
  193 + D5427E9B36B82334013EE571 /* README.md */,
  194 + 493F170E54A6352FBF0F4EAF /* LICENSE */,
  195 + );
  196 + name = "Podspec Metadata";
  197 + sourceTree = "<group>";
  198 + };
  199 +/* End PBXGroup section */
  200 +
  201 +/* Begin PBXNativeTarget section */
  202 + 6003F589195388D20070C39A /* CNLiveCustomControl_Example */ = {
  203 + isa = PBXNativeTarget;
  204 + buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveCustomControl_Example" */;
  205 + buildPhases = (
  206 + 36A4CC0D2DF5775A030A911E /* [CP] Check Pods Manifest.lock */,
  207 + 6003F586195388D20070C39A /* Sources */,
  208 + 6003F587195388D20070C39A /* Frameworks */,
  209 + 6003F588195388D20070C39A /* Resources */,
  210 + 418749F296B7B67F03012C76 /* [CP] Embed Pods Frameworks */,
  211 + );
  212 + buildRules = (
  213 + );
  214 + dependencies = (
  215 + );
  216 + name = CNLiveCustomControl_Example;
  217 + productName = CNLiveCustomControl;
  218 + productReference = 6003F58A195388D20070C39A /* CNLiveCustomControl_Example.app */;
  219 + productType = "com.apple.product-type.application";
  220 + };
  221 + 6003F5AD195388D20070C39A /* CNLiveCustomControl_Tests */ = {
  222 + isa = PBXNativeTarget;
  223 + buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveCustomControl_Tests" */;
  224 + buildPhases = (
  225 + 892FA99887F0C833AA467A7B /* [CP] Check Pods Manifest.lock */,
  226 + 6003F5AA195388D20070C39A /* Sources */,
  227 + 6003F5AB195388D20070C39A /* Frameworks */,
  228 + 6003F5AC195388D20070C39A /* Resources */,
  229 + );
  230 + buildRules = (
  231 + );
  232 + dependencies = (
  233 + 6003F5B4195388D20070C39A /* PBXTargetDependency */,
  234 + );
  235 + name = CNLiveCustomControl_Tests;
  236 + productName = CNLiveCustomControlTests;
  237 + productReference = 6003F5AE195388D20070C39A /* CNLiveCustomControl_Tests.xctest */;
  238 + productType = "com.apple.product-type.bundle.unit-test";
  239 + };
  240 +/* End PBXNativeTarget section */
  241 +
  242 +/* Begin PBXProject section */
  243 + 6003F582195388D10070C39A /* Project object */ = {
  244 + isa = PBXProject;
  245 + attributes = {
  246 + CLASSPREFIX = CNLIVE;
  247 + LastUpgradeCheck = 0720;
  248 + ORGANIZATIONNAME = "153993236@qq.com";
  249 + TargetAttributes = {
  250 + 6003F5AD195388D20070C39A = {
  251 + TestTargetID = 6003F589195388D20070C39A;
  252 + };
  253 + };
  254 + };
  255 + buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "CNLiveCustomControl" */;
  256 + compatibilityVersion = "Xcode 3.2";
  257 + developmentRegion = English;
  258 + hasScannedForEncodings = 0;
  259 + knownRegions = (
  260 + English,
  261 + en,
  262 + Base,
  263 + );
  264 + mainGroup = 6003F581195388D10070C39A;
  265 + productRefGroup = 6003F58B195388D20070C39A /* Products */;
  266 + projectDirPath = "";
  267 + projectRoot = "";
  268 + targets = (
  269 + 6003F589195388D20070C39A /* CNLiveCustomControl_Example */,
  270 + 6003F5AD195388D20070C39A /* CNLiveCustomControl_Tests */,
  271 + );
  272 + };
  273 +/* End PBXProject section */
  274 +
  275 +/* Begin PBXResourcesBuildPhase section */
  276 + 6003F588195388D20070C39A /* Resources */ = {
  277 + isa = PBXResourcesBuildPhase;
  278 + buildActionMask = 2147483647;
  279 + files = (
  280 + 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */,
  281 + 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */,
  282 + 6003F5A9195388D20070C39A /* Images.xcassets in Resources */,
  283 + 6003F598195388D20070C39A /* InfoPlist.strings in Resources */,
  284 + );
  285 + runOnlyForDeploymentPostprocessing = 0;
  286 + };
  287 + 6003F5AC195388D20070C39A /* Resources */ = {
  288 + isa = PBXResourcesBuildPhase;
  289 + buildActionMask = 2147483647;
  290 + files = (
  291 + 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */,
  292 + );
  293 + runOnlyForDeploymentPostprocessing = 0;
  294 + };
  295 +/* End PBXResourcesBuildPhase section */
  296 +
  297 +/* Begin PBXShellScriptBuildPhase section */
  298 + 36A4CC0D2DF5775A030A911E /* [CP] Check Pods Manifest.lock */ = {
  299 + isa = PBXShellScriptBuildPhase;
  300 + buildActionMask = 2147483647;
  301 + files = (
  302 + );
  303 + inputFileListPaths = (
  304 + );
  305 + inputPaths = (
  306 + "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
  307 + "${PODS_ROOT}/Manifest.lock",
  308 + );
  309 + name = "[CP] Check Pods Manifest.lock";
  310 + outputFileListPaths = (
  311 + );
  312 + outputPaths = (
  313 + "$(DERIVED_FILE_DIR)/Pods-CNLiveCustomControl_Example-checkManifestLockResult.txt",
  314 + );
  315 + runOnlyForDeploymentPostprocessing = 0;
  316 + shellPath = /bin/sh;
  317 + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
  318 + showEnvVarsInLog = 0;
  319 + };
  320 + 418749F296B7B67F03012C76 /* [CP] Embed Pods Frameworks */ = {
  321 + isa = PBXShellScriptBuildPhase;
  322 + buildActionMask = 2147483647;
  323 + files = (
  324 + );
  325 + inputPaths = (
  326 + "${PODS_ROOT}/Target Support Files/Pods-CNLiveCustomControl_Example/Pods-CNLiveCustomControl_Example-frameworks.sh",
  327 + "${BUILT_PRODUCTS_DIR}/CNLiveCategory/CNLiveCategory.framework",
  328 + "${BUILT_PRODUCTS_DIR}/CNLiveCustomControl/CNLiveCustomControl.framework",
  329 + "${BUILT_PRODUCTS_DIR}/CNLiveTripartiteManagement/CNLiveTripartiteManagement.framework",
  330 + "${BUILT_PRODUCTS_DIR}/Masonry/Masonry.framework",
  331 + "${BUILT_PRODUCTS_DIR}/QMUIKit/QMUIKit.framework",
  332 + );
  333 + name = "[CP] Embed Pods Frameworks";
  334 + outputPaths = (
  335 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCategory.framework",
  336 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCustomControl.framework",
  337 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveTripartiteManagement.framework",
  338 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Masonry.framework",
  339 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/QMUIKit.framework",
  340 + );
  341 + runOnlyForDeploymentPostprocessing = 0;
  342 + shellPath = /bin/sh;
  343 + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CNLiveCustomControl_Example/Pods-CNLiveCustomControl_Example-frameworks.sh\"\n";
  344 + showEnvVarsInLog = 0;
  345 + };
  346 + 892FA99887F0C833AA467A7B /* [CP] Check Pods Manifest.lock */ = {
  347 + isa = PBXShellScriptBuildPhase;
  348 + buildActionMask = 2147483647;
  349 + files = (
  350 + );
  351 + inputFileListPaths = (
  352 + );
  353 + inputPaths = (
  354 + "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
  355 + "${PODS_ROOT}/Manifest.lock",
  356 + );
  357 + name = "[CP] Check Pods Manifest.lock";
  358 + outputFileListPaths = (
  359 + );
  360 + outputPaths = (
  361 + "$(DERIVED_FILE_DIR)/Pods-CNLiveCustomControl_Tests-checkManifestLockResult.txt",
  362 + );
  363 + runOnlyForDeploymentPostprocessing = 0;
  364 + shellPath = /bin/sh;
  365 + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
  366 + showEnvVarsInLog = 0;
  367 + };
  368 +/* End PBXShellScriptBuildPhase section */
  369 +
  370 +/* Begin PBXSourcesBuildPhase section */
  371 + 6003F586195388D20070C39A /* Sources */ = {
  372 + isa = PBXSourcesBuildPhase;
  373 + buildActionMask = 2147483647;
  374 + files = (
  375 + 6003F59E195388D20070C39A /* CNLIVEAppDelegate.m in Sources */,
  376 + 6003F5A7195388D20070C39A /* CNLIVEViewController.m in Sources */,
  377 + 6003F59A195388D20070C39A /* main.m in Sources */,
  378 + );
  379 + runOnlyForDeploymentPostprocessing = 0;
  380 + };
  381 + 6003F5AA195388D20070C39A /* Sources */ = {
  382 + isa = PBXSourcesBuildPhase;
  383 + buildActionMask = 2147483647;
  384 + files = (
  385 + 6003F5BC195388D20070C39A /* Tests.m in Sources */,
  386 + );
  387 + runOnlyForDeploymentPostprocessing = 0;
  388 + };
  389 +/* End PBXSourcesBuildPhase section */
  390 +
  391 +/* Begin PBXTargetDependency section */
  392 + 6003F5B4195388D20070C39A /* PBXTargetDependency */ = {
  393 + isa = PBXTargetDependency;
  394 + target = 6003F589195388D20070C39A /* CNLiveCustomControl_Example */;
  395 + targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */;
  396 + };
  397 +/* End PBXTargetDependency section */
  398 +
  399 +/* Begin PBXVariantGroup section */
  400 + 6003F596195388D20070C39A /* InfoPlist.strings */ = {
  401 + isa = PBXVariantGroup;
  402 + children = (
  403 + 6003F597195388D20070C39A /* en */,
  404 + );
  405 + name = InfoPlist.strings;
  406 + sourceTree = "<group>";
  407 + };
  408 + 6003F5B8195388D20070C39A /* InfoPlist.strings */ = {
  409 + isa = PBXVariantGroup;
  410 + children = (
  411 + 6003F5B9195388D20070C39A /* en */,
  412 + );
  413 + name = InfoPlist.strings;
  414 + sourceTree = "<group>";
  415 + };
  416 + 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */ = {
  417 + isa = PBXVariantGroup;
  418 + children = (
  419 + 71719F9E1E33DC2100824A3D /* Base */,
  420 + );
  421 + name = LaunchScreen.storyboard;
  422 + sourceTree = "<group>";
  423 + };
  424 +/* End PBXVariantGroup section */
  425 +
  426 +/* Begin XCBuildConfiguration section */
  427 + 6003F5BD195388D20070C39A /* Debug */ = {
  428 + isa = XCBuildConfiguration;
  429 + buildSettings = {
  430 + ALWAYS_SEARCH_USER_PATHS = NO;
  431 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  432 + CLANG_CXX_LIBRARY = "libc++";
  433 + CLANG_ENABLE_MODULES = YES;
  434 + CLANG_ENABLE_OBJC_ARC = YES;
  435 + CLANG_WARN_BOOL_CONVERSION = YES;
  436 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  437 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  438 + CLANG_WARN_EMPTY_BODY = YES;
  439 + CLANG_WARN_ENUM_CONVERSION = YES;
  440 + CLANG_WARN_INT_CONVERSION = YES;
  441 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  442 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
  443 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  444 + COPY_PHASE_STRIP = NO;
  445 + ENABLE_TESTABILITY = YES;
  446 + GCC_C_LANGUAGE_STANDARD = gnu99;
  447 + GCC_DYNAMIC_NO_PIC = NO;
  448 + GCC_OPTIMIZATION_LEVEL = 0;
  449 + GCC_PREPROCESSOR_DEFINITIONS = (
  450 + "DEBUG=1",
  451 + "$(inherited)",
  452 + );
  453 + GCC_SYMBOLS_PRIVATE_EXTERN = NO;
  454 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  455 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  456 + GCC_WARN_UNDECLARED_SELECTOR = YES;
  457 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  458 + GCC_WARN_UNUSED_FUNCTION = YES;
  459 + GCC_WARN_UNUSED_VARIABLE = YES;
  460 + IPHONEOS_DEPLOYMENT_TARGET = 9.3;
  461 + ONLY_ACTIVE_ARCH = YES;
  462 + SDKROOT = iphoneos;
  463 + TARGETED_DEVICE_FAMILY = "1,2";
  464 + };
  465 + name = Debug;
  466 + };
  467 + 6003F5BE195388D20070C39A /* Release */ = {
  468 + isa = XCBuildConfiguration;
  469 + buildSettings = {
  470 + ALWAYS_SEARCH_USER_PATHS = NO;
  471 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  472 + CLANG_CXX_LIBRARY = "libc++";
  473 + CLANG_ENABLE_MODULES = YES;
  474 + CLANG_ENABLE_OBJC_ARC = YES;
  475 + CLANG_WARN_BOOL_CONVERSION = YES;
  476 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  477 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  478 + CLANG_WARN_EMPTY_BODY = YES;
  479 + CLANG_WARN_ENUM_CONVERSION = YES;
  480 + CLANG_WARN_INT_CONVERSION = YES;
  481 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  482 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
  483 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  484 + COPY_PHASE_STRIP = YES;
  485 + ENABLE_NS_ASSERTIONS = NO;
  486 + GCC_C_LANGUAGE_STANDARD = gnu99;
  487 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  488 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  489 + GCC_WARN_UNDECLARED_SELECTOR = YES;
  490 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  491 + GCC_WARN_UNUSED_FUNCTION = YES;
  492 + GCC_WARN_UNUSED_VARIABLE = YES;
  493 + IPHONEOS_DEPLOYMENT_TARGET = 9.3;
  494 + SDKROOT = iphoneos;
  495 + TARGETED_DEVICE_FAMILY = "1,2";
  496 + VALIDATE_PRODUCT = YES;
  497 + };
  498 + name = Release;
  499 + };
  500 + 6003F5C0195388D20070C39A /* Debug */ = {
  501 + isa = XCBuildConfiguration;
  502 + baseConfigurationReference = 5A0724CA917A291E36551AAC /* Pods-CNLiveCustomControl_Example.debug.xcconfig */;
  503 + buildSettings = {
  504 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  505 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  506 + GCC_PREFIX_HEADER = "CNLiveCustomControl/CNLiveCustomControl-Prefix.pch";
  507 + INFOPLIST_FILE = "CNLiveCustomControl/CNLiveCustomControl-Info.plist";
  508 + MODULE_NAME = ExampleApp;
  509 + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
  510 + PRODUCT_NAME = "$(TARGET_NAME)";
  511 + SWIFT_VERSION = 4.0;
  512 + WRAPPER_EXTENSION = app;
  513 + };
  514 + name = Debug;
  515 + };
  516 + 6003F5C1195388D20070C39A /* Release */ = {
  517 + isa = XCBuildConfiguration;
  518 + baseConfigurationReference = 7247E46C71F22F97DFFB8FF6 /* Pods-CNLiveCustomControl_Example.release.xcconfig */;
  519 + buildSettings = {
  520 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  521 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  522 + GCC_PREFIX_HEADER = "CNLiveCustomControl/CNLiveCustomControl-Prefix.pch";
  523 + INFOPLIST_FILE = "CNLiveCustomControl/CNLiveCustomControl-Info.plist";
  524 + MODULE_NAME = ExampleApp;
  525 + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
  526 + PRODUCT_NAME = "$(TARGET_NAME)";
  527 + SWIFT_VERSION = 4.0;
  528 + WRAPPER_EXTENSION = app;
  529 + };
  530 + name = Release;
  531 + };
  532 + 6003F5C3195388D20070C39A /* Debug */ = {
  533 + isa = XCBuildConfiguration;
  534 + baseConfigurationReference = DC306F382A3CFCA5A281A1EA /* Pods-CNLiveCustomControl_Tests.debug.xcconfig */;
  535 + buildSettings = {
  536 + BUNDLE_LOADER = "$(TEST_HOST)";
  537 + FRAMEWORK_SEARCH_PATHS = (
  538 + "$(PLATFORM_DIR)/Developer/Library/Frameworks",
  539 + "$(inherited)",
  540 + "$(DEVELOPER_FRAMEWORKS_DIR)",
  541 + );
  542 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  543 + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch";
  544 + GCC_PREPROCESSOR_DEFINITIONS = (
  545 + "DEBUG=1",
  546 + "$(inherited)",
  547 + );
  548 + INFOPLIST_FILE = "Tests/Tests-Info.plist";
  549 + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
  550 + PRODUCT_NAME = "$(TARGET_NAME)";
  551 + SWIFT_VERSION = 4.0;
  552 + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CNLiveCustomControl_Example.app/CNLiveCustomControl_Example";
  553 + WRAPPER_EXTENSION = xctest;
  554 + };
  555 + name = Debug;
  556 + };
  557 + 6003F5C4195388D20070C39A /* Release */ = {
  558 + isa = XCBuildConfiguration;
  559 + baseConfigurationReference = 4D20F9B6E89E22417E0A8A81 /* Pods-CNLiveCustomControl_Tests.release.xcconfig */;
  560 + buildSettings = {
  561 + BUNDLE_LOADER = "$(TEST_HOST)";
  562 + FRAMEWORK_SEARCH_PATHS = (
  563 + "$(PLATFORM_DIR)/Developer/Library/Frameworks",
  564 + "$(inherited)",
  565 + "$(DEVELOPER_FRAMEWORKS_DIR)",
  566 + );
  567 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  568 + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch";
  569 + INFOPLIST_FILE = "Tests/Tests-Info.plist";
  570 + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
  571 + PRODUCT_NAME = "$(TARGET_NAME)";
  572 + SWIFT_VERSION = 4.0;
  573 + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CNLiveCustomControl_Example.app/CNLiveCustomControl_Example";
  574 + WRAPPER_EXTENSION = xctest;
  575 + };
  576 + name = Release;
  577 + };
  578 +/* End XCBuildConfiguration section */
  579 +
  580 +/* Begin XCConfigurationList section */
  581 + 6003F585195388D10070C39A /* Build configuration list for PBXProject "CNLiveCustomControl" */ = {
  582 + isa = XCConfigurationList;
  583 + buildConfigurations = (
  584 + 6003F5BD195388D20070C39A /* Debug */,
  585 + 6003F5BE195388D20070C39A /* Release */,
  586 + );
  587 + defaultConfigurationIsVisible = 0;
  588 + defaultConfigurationName = Release;
  589 + };
  590 + 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveCustomControl_Example" */ = {
  591 + isa = XCConfigurationList;
  592 + buildConfigurations = (
  593 + 6003F5C0195388D20070C39A /* Debug */,
  594 + 6003F5C1195388D20070C39A /* Release */,
  595 + );
  596 + defaultConfigurationIsVisible = 0;
  597 + defaultConfigurationName = Release;
  598 + };
  599 + 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveCustomControl_Tests" */ = {
  600 + isa = XCConfigurationList;
  601 + buildConfigurations = (
  602 + 6003F5C3195388D20070C39A /* Debug */,
  603 + 6003F5C4195388D20070C39A /* Release */,
  604 + );
  605 + defaultConfigurationIsVisible = 0;
  606 + defaultConfigurationName = Release;
  607 + };
  608 +/* End XCConfigurationList section */
  609 + };
  610 + rootObject = 6003F582195388D10070C39A /* Project object */;
  611 +}
... ...
Example/CNLiveCustomControl.xcodeproj/xcshareddata/xcschemes/CNLiveCustomControl-Example.xcscheme 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<Scheme
  3 + LastUpgradeVersion = "0720"
  4 + version = "1.3">
  5 + <BuildAction
  6 + parallelizeBuildables = "YES"
  7 + buildImplicitDependencies = "YES">
  8 + <BuildActionEntries>
  9 + <BuildActionEntry
  10 + buildForTesting = "YES"
  11 + buildForRunning = "YES"
  12 + buildForProfiling = "YES"
  13 + buildForArchiving = "YES"
  14 + buildForAnalyzing = "YES">
  15 + <BuildableReference
  16 + BuildableIdentifier = "primary"
  17 + BlueprintIdentifier = "6003F589195388D20070C39A"
  18 + BuildableName = "CNLiveCustomControl_Example.app"
  19 + BlueprintName = "CNLiveCustomControl_Example"
  20 + ReferencedContainer = "container:CNLiveCustomControl.xcodeproj">
  21 + </BuildableReference>
  22 + </BuildActionEntry>
  23 + </BuildActionEntries>
  24 + </BuildAction>
  25 + <TestAction
  26 + buildConfiguration = "Debug"
  27 + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
  28 + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
  29 + shouldUseLaunchSchemeArgsEnv = "YES">
  30 + <Testables>
  31 + <TestableReference
  32 + skipped = "NO">
  33 + <BuildableReference
  34 + BuildableIdentifier = "primary"
  35 + BlueprintIdentifier = "6003F5AD195388D20070C39A"
  36 + BuildableName = "CNLiveCustomControl_Tests.xctest"
  37 + BlueprintName = "CNLiveCustomControl_Tests"
  38 + ReferencedContainer = "container:CNLiveCustomControl.xcodeproj">
  39 + </BuildableReference>
  40 + </TestableReference>
  41 + </Testables>
  42 + <MacroExpansion>
  43 + <BuildableReference
  44 + BuildableIdentifier = "primary"
  45 + BlueprintIdentifier = "6003F589195388D20070C39A"
  46 + BuildableName = "CNLiveCustomControl_Example.app"
  47 + BlueprintName = "CNLiveCustomControl_Example"
  48 + ReferencedContainer = "container:CNLiveCustomControl.xcodeproj">
  49 + </BuildableReference>
  50 + </MacroExpansion>
  51 + <AdditionalOptions>
  52 + </AdditionalOptions>
  53 + </TestAction>
  54 + <LaunchAction
  55 + buildConfiguration = "Debug"
  56 + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
  57 + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
  58 + launchStyle = "0"
  59 + useCustomWorkingDirectory = "NO"
  60 + ignoresPersistentStateOnLaunch = "NO"
  61 + debugDocumentVersioning = "YES"
  62 + debugServiceExtension = "internal"
  63 + allowLocationSimulation = "YES">
  64 + <BuildableProductRunnable
  65 + runnableDebuggingMode = "0">
  66 + <BuildableReference
  67 + BuildableIdentifier = "primary"
  68 + BlueprintIdentifier = "6003F589195388D20070C39A"
  69 + BuildableName = "CNLiveCustomControl_Example.app"
  70 + BlueprintName = "CNLiveCustomControl_Example"
  71 + ReferencedContainer = "container:CNLiveCustomControl.xcodeproj">
  72 + </BuildableReference>
  73 + </BuildableProductRunnable>
  74 + <AdditionalOptions>
  75 + </AdditionalOptions>
  76 + </LaunchAction>
  77 + <ProfileAction
  78 + buildConfiguration = "Release"
  79 + shouldUseLaunchSchemeArgsEnv = "YES"
  80 + savedToolIdentifier = ""
  81 + useCustomWorkingDirectory = "NO"
  82 + debugDocumentVersioning = "YES">
  83 + <BuildableProductRunnable
  84 + runnableDebuggingMode = "0">
  85 + <BuildableReference
  86 + BuildableIdentifier = "primary"
  87 + BlueprintIdentifier = "6003F589195388D20070C39A"
  88 + BuildableName = "CNLiveCustomControl_Example.app"
  89 + BlueprintName = "CNLiveCustomControl_Example"
  90 + ReferencedContainer = "container:CNLiveCustomControl.xcodeproj">
  91 + </BuildableReference>
  92 + </BuildableProductRunnable>
  93 + </ProfileAction>
  94 + <AnalyzeAction
  95 + buildConfiguration = "Debug">
  96 + </AnalyzeAction>
  97 + <ArchiveAction
  98 + buildConfiguration = "Release"
  99 + revealArchiveInOrganizer = "YES">
  100 + </ArchiveAction>
  101 +</Scheme>
... ...
Example/CNLiveCustomControl/Base.lproj/LaunchScreen.storyboard 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
  3 + <device id="retina4_7" orientation="portrait">
  4 + <adaptation id="fullscreen"/>
  5 + </device>
  6 + <dependencies>
  7 + <deployment identifier="iOS"/>
  8 + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
  9 + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  10 + </dependencies>
  11 + <scenes>
  12 + <!--View Controller-->
  13 + <scene sceneID="EHf-IW-A2E">
  14 + <objects>
  15 + <viewController id="01J-lp-oVM" sceneMemberID="viewController">
  16 + <layoutGuides>
  17 + <viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
  18 + <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
  19 + </layoutGuides>
  20 + <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
  21 + <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
  22 + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  23 + <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  24 + </view>
  25 + </viewController>
  26 + <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
  27 + </objects>
  28 + <point key="canvasLocation" x="53" y="375"/>
  29 + </scene>
  30 + </scenes>
  31 +</document>
... ...
Example/CNLiveCustomControl/Base.lproj/Main.storyboard 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="whP-gf-Uak">
  3 + <device id="retina4_7" orientation="portrait">
  4 + <adaptation id="fullscreen"/>
  5 + </device>
  6 + <dependencies>
  7 + <deployment identifier="iOS"/>
  8 + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
  9 + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  10 + </dependencies>
  11 + <scenes>
  12 + <!--View Controller-->
  13 + <scene sceneID="wQg-tq-qST">
  14 + <objects>
  15 + <viewController id="whP-gf-Uak" customClass="CNLIVEViewController" sceneMemberID="viewController">
  16 + <layoutGuides>
  17 + <viewControllerLayoutGuide type="top" id="uEw-UM-LJ8"/>
  18 + <viewControllerLayoutGuide type="bottom" id="Mvr-aV-6Um"/>
  19 + </layoutGuides>
  20 + <view key="view" contentMode="scaleToFill" id="TpU-gO-2f1">
  21 + <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
  22 + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  23 + <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  24 + </view>
  25 + </viewController>
  26 + <placeholder placeholderIdentifier="IBFirstResponder" id="tc2-Qw-aMS" userLabel="First Responder" sceneMemberID="firstResponder"/>
  27 + </objects>
  28 + <point key="canvasLocation" x="305" y="433"/>
  29 + </scene>
  30 + </scenes>
  31 +</document>
... ...
Example/CNLiveCustomControl/CNLIVEAppDelegate.h 0 → 100644
  1 +//
  2 +// CNLIVEAppDelegate.h
  3 +// CNLiveCustomControl
  4 +//
  5 +// Created by 153993236@qq.com on 12/12/2019.
  6 +// Copyright (c) 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +@import UIKit;
  10 +
  11 +@interface CNLIVEAppDelegate : UIResponder <UIApplicationDelegate>
  12 +
  13 +@property (strong, nonatomic) UIWindow *window;
  14 +
  15 +@end
... ...
Example/CNLiveCustomControl/CNLIVEAppDelegate.m 0 → 100644
  1 +//
  2 +// CNLIVEAppDelegate.m
  3 +// CNLiveCustomControl
  4 +//
  5 +// Created by 153993236@qq.com on 12/12/2019.
  6 +// Copyright (c) 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLIVEAppDelegate.h"
  10 +#import "CNLIVEViewController.h"
  11 +
  12 +@implementation CNLIVEAppDelegate
  13 +
  14 +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  15 +{
  16 + // Override point for customization after application launch.
  17 + CNLIVEViewController *vc = [[CNLIVEViewController alloc] init];
  18 + UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:vc];
  19 + self.window.rootViewController = nav;//设置根视图控制器
  20 + [self.window makeKeyAndVisible];
  21 + return YES;
  22 +}
  23 +
  24 +- (void)applicationWillResignActive:(UIApplication *)application
  25 +{
  26 + // 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.
  27 + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
  28 +}
  29 +
  30 +- (void)applicationDidEnterBackground:(UIApplication *)application
  31 +{
  32 + // 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.
  33 + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
  34 +}
  35 +
  36 +- (void)applicationWillEnterForeground:(UIApplication *)application
  37 +{
  38 + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
  39 +}
  40 +
  41 +- (void)applicationDidBecomeActive:(UIApplication *)application
  42 +{
  43 + // 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.
  44 +}
  45 +
  46 +- (void)applicationWillTerminate:(UIApplication *)application
  47 +{
  48 + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
  49 +}
  50 +
  51 +@end
... ...
Example/CNLiveCustomControl/CNLIVEViewController.h 0 → 100644
  1 +//
  2 +// CNLIVEViewController.h
  3 +// CNLiveCustomControl
  4 +//
  5 +// Created by 153993236@qq.com on 12/12/2019.
  6 +// Copyright (c) 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +@import UIKit;
  10 +
  11 +@interface CNLIVEViewController : UIViewController
  12 +
  13 +@end
... ...
Example/CNLiveCustomControl/CNLIVEViewController.m 0 → 100644
  1 +//
  2 +// CNLIVEViewController.m
  3 +// CNLiveCustomControl
  4 +//
  5 +// Created by 153993236@qq.com on 12/12/2019.
  6 +// Copyright (c) 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLIVEViewController.h"
  10 +#import "CNLiveNavigationBar.h"
  11 +#import "QMUIKit.h"
  12 +
  13 +@interface CNLIVEViewController ()
  14 +@property (nonatomic, strong) CNLiveNavigationBar *navigationBar;
  15 +
  16 +@end
  17 +
  18 +@implementation CNLIVEViewController
  19 +#pragma mark - 生命周期
  20 +- (void)viewWillAppear:(BOOL)animated{
  21 + [super viewWillAppear:animated];
  22 + self.navigationController.navigationBarHidden = YES;
  23 +}
  24 +- (void)viewDidLoad
  25 +{
  26 + [super viewDidLoad];
  27 + // Do any additional setup after loading the view, typically from a nib.
  28 + [self.view addSubview:self.navigationBar];
  29 +
  30 +}
  31 +
  32 +- (void)didReceiveMemoryWarning
  33 +{
  34 + [super didReceiveMemoryWarning];
  35 + // Dispose of any resources that can be recreated.
  36 +}
  37 +- (void)navigationBar:(CNLiveNavigationBar *)navigationBar actionEvents:(NSString *)actionEvents{
  38 + NSLog(@"%@",actionEvents);
  39 +
  40 +}
  41 +
  42 +- (CNLiveNavigationBar *)navigationBar {
  43 + if (!_navigationBar) {
  44 + _navigationBar = [CNLiveNavigationBar navigationBar];
  45 + _navigationBar.title.text = @"首页";
  46 +// _navigationBar.rightTitle = @"相册";
  47 + _navigationBar.onClickLeftButton = ^{
  48 + NSLog(@"左");
  49 + };
  50 + _navigationBar.onClickRightButton = ^{
  51 + NSLog(@"右");
  52 + };
  53 +// _navigationBar.right = nil;
  54 + }
  55 + return _navigationBar;
  56 +}
  57 +
  58 +@end
... ...
Example/CNLiveCustomControl/CNLiveCustomControl-Info.plist 0 → 100644
  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>CFBundleDisplayName</key>
  8 + <string>${PRODUCT_NAME}</string>
  9 + <key>CFBundleExecutable</key>
  10 + <string>${EXECUTABLE_NAME}</string>
  11 + <key>CFBundleIdentifier</key>
  12 + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
  13 + <key>CFBundleInfoDictionaryVersion</key>
  14 + <string>6.0</string>
  15 + <key>CFBundleName</key>
  16 + <string>${PRODUCT_NAME}</string>
  17 + <key>CFBundlePackageType</key>
  18 + <string>APPL</string>
  19 + <key>CFBundleShortVersionString</key>
  20 + <string>1.0</string>
  21 + <key>CFBundleSignature</key>
  22 + <string>????</string>
  23 + <key>CFBundleVersion</key>
  24 + <string>1.0</string>
  25 + <key>LSRequiresIPhoneOS</key>
  26 + <true/>
  27 + <key>UILaunchStoryboardName</key>
  28 + <string>LaunchScreen</string>
  29 + <key>UIMainStoryboardFile</key>
  30 + <string>Main</string>
  31 + <key>UIRequiredDeviceCapabilities</key>
  32 + <array>
  33 + <string>armv7</string>
  34 + </array>
  35 + <key>UISupportedInterfaceOrientations</key>
  36 + <array>
  37 + <string>UIInterfaceOrientationPortrait</string>
  38 + <string>UIInterfaceOrientationLandscapeLeft</string>
  39 + <string>UIInterfaceOrientationLandscapeRight</string>
  40 + </array>
  41 + <key>UISupportedInterfaceOrientations~ipad</key>
  42 + <array>
  43 + <string>UIInterfaceOrientationPortrait</string>
  44 + <string>UIInterfaceOrientationPortraitUpsideDown</string>
  45 + <string>UIInterfaceOrientationLandscapeLeft</string>
  46 + <string>UIInterfaceOrientationLandscapeRight</string>
  47 + </array>
  48 +</dict>
  49 +</plist>
... ...
Example/CNLiveCustomControl/CNLiveCustomControl-Prefix.pch 0 → 100644
  1 +//
  2 +// Prefix header
  3 +//
  4 +// The contents of this file are implicitly included at the beginning of every source file.
  5 +//
  6 +
  7 +#import <Availability.h>
  8 +
  9 +#ifndef __IPHONE_5_0
  10 +#warning "This project uses features only available in iOS SDK 5.0 and later."
  11 +#endif
  12 +
  13 +#ifdef __OBJC__
  14 + @import UIKit;
  15 + @import Foundation;
  16 +#endif
... ...
Example/CNLiveCustomControl/Images.xcassets/AppIcon.appiconset/Contents.json 0 → 100644
  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 +}
... ...
Example/CNLiveCustomControl/en.lproj/InfoPlist.strings 0 → 100644
  1 +/* Localized versions of Info.plist keys */
  2 +
... ...
Example/CNLiveCustomControl/main.m 0 → 100644
  1 +//
  2 +// main.m
  3 +// CNLiveCustomControl
  4 +//
  5 +// Created by 153993236@qq.com on 12/12/2019.
  6 +// Copyright (c) 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +@import UIKit;
  10 +#import "CNLIVEAppDelegate.h"
  11 +
  12 +int main(int argc, char * argv[])
  13 +{
  14 + @autoreleasepool {
  15 + return UIApplicationMain(argc, argv, nil, NSStringFromClass([CNLIVEAppDelegate class]));
  16 + }
  17 +}
... ...
Example/Podfile 0 → 100644
  1 +use_frameworks!
  2 +source 'https://github.com/CocoaPods/Specs.git'
  3 +source 'http://bj.gitlab.cnlive.com/ios-team/CNLiveRepos.git'
  4 +
  5 +platform :ios, '9.0'
  6 +
  7 +target 'CNLiveCustomControl_Example' do
  8 + pod 'CNLiveCustomControl', :path => '../'
  9 +
  10 + target 'CNLiveCustomControl_Tests' do
  11 + inherit! :search_paths
  12 +
  13 +
  14 + end
  15 +end
... ...
Example/Tests/Tests-Info.plist 0 → 100644
  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>CFBundlePackageType</key>
  14 + <string>BNDL</string>
  15 + <key>CFBundleShortVersionString</key>
  16 + <string>1.0</string>
  17 + <key>CFBundleSignature</key>
  18 + <string>????</string>
  19 + <key>CFBundleVersion</key>
  20 + <string>1</string>
  21 +</dict>
  22 +</plist>
... ...
Example/Tests/Tests-Prefix.pch 0 → 100644
  1 +// The contents of this file are implicitly included at the beginning of every test case source file.
  2 +
  3 +#ifdef __OBJC__
  4 +
  5 +
  6 +
  7 +#endif
... ...
Example/Tests/Tests.m 0 → 100644
  1 +//
  2 +// CNLiveCustomControlTests.m
  3 +// CNLiveCustomControlTests
  4 +//
  5 +// Created by 153993236@qq.com on 12/12/2019.
  6 +// Copyright (c) 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +@import XCTest;
  10 +
  11 +@interface Tests : XCTestCase
  12 +
  13 +@end
  14 +
  15 +@implementation Tests
  16 +
  17 +- (void)setUp
  18 +{
  19 + [super setUp];
  20 + // Put setup code here. This method is called before the invocation of each test method in the class.
  21 +}
  22 +
  23 +- (void)tearDown
  24 +{
  25 + // Put teardown code here. This method is called after the invocation of each test method in the class.
  26 + [super tearDown];
  27 +}
  28 +
  29 +- (void)testExample
  30 +{
  31 + XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
  32 +}
  33 +
  34 +@end
  35 +
... ...
Example/Tests/en.lproj/InfoPlist.strings 0 → 100644
  1 +/* Localized versions of Info.plist keys */
  2 +
... ...
1   -CNLiveCustomControl
2 1 \ No newline at end of file
  2 +Copyright (c) 2019 153993236@qq.com <zhangxiaowen@cnlive.com>
  3 +
  4 +Permission is hereby granted, free of charge, to any person obtaining a copy
  5 +of this software and associated documentation files (the "Software"), to deal
  6 +in the Software without restriction, including without limitation the rights
  7 +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8 +copies of the Software, and to permit persons to whom the Software is
  9 +furnished to do so, subject to the following conditions:
  10 +
  11 +The above copyright notice and this permission notice shall be included in
  12 +all copies or substantial portions of the Software.
  13 +
  14 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15 +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19 +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  20 +THE SOFTWARE.
... ...
README.md
1   -CNLiveCustomControl
2 1 \ No newline at end of file
  2 +# CNLiveCustomControl
  3 +
  4 +[![CI Status](https://img.shields.io/travis/153993236@qq.com/CNLiveCustomControl.svg?style=flat)](https://travis-ci.org/153993236@qq.com/CNLiveCustomControl)
  5 +[![Version](https://img.shields.io/cocoapods/v/CNLiveCustomControl.svg?style=flat)](https://cocoapods.org/pods/CNLiveCustomControl)
  6 +[![License](https://img.shields.io/cocoapods/l/CNLiveCustomControl.svg?style=flat)](https://cocoapods.org/pods/CNLiveCustomControl)
  7 +[![Platform](https://img.shields.io/cocoapods/p/CNLiveCustomControl.svg?style=flat)](https://cocoapods.org/pods/CNLiveCustomControl)
  8 +
  9 +## Example
  10 +
  11 +To run the example project, clone the repo, and run `pod install` from the Example directory first.
  12 +
  13 +## Requirements
  14 +
  15 +## Installation
  16 +
  17 +CNLiveCustomControl is available through [CocoaPods](https://cocoapods.org). To install
  18 +it, simply add the following line to your Podfile:
  19 +
  20 +```ruby
  21 +pod 'CNLiveCustomControl'
  22 +```
  23 +
  24 +## Author
  25 +
  26 +153993236@qq.com, zhangxiaowen@cnlive.com
  27 +
  28 +## License
  29 +
  30 +CNLiveCustomControl is available under the MIT license. See the LICENSE file for more info.
... ...
_Pods.xcodeproj 0 → 120000
  1 +Example/Pods/Pods.xcodeproj
0 2 \ No newline at end of file
... ...