Commit 0a024ba98fc8b366aa7f1dcffe140b35841f07b0

Authored by zhangxiaowen
1 parent 96f366a6

no message

Showing 40 changed files with 2085 additions and 1 deletions
CNLiveCollectionModule.podspec 0 → 100644
  1 +#
  2 +# Be sure to run `pod lib lint CNLiveCollectionModule.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 = 'CNLiveCollectionModule'
  11 + s.version = '0.0.1'
  12 + s.summary = 'CNLiveCollectionModule.'
  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/CNLiveCollectionModule'
  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/CNLiveCollectionModule.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 = 'CNLiveCollectionModule/Classes/**/*'
  34 + # Module
  35 + s.subspec 'Module' do |ss|
  36 + ss.source_files = 'CNLiveCollectionModule/Classes/Module/*.{h,m}'
  37 + ss.dependency 'CNLiveCollectionModule/Controller'
  38 + end
  39 +
  40 + # Controller
  41 + s.subspec 'Controller' do |ss|
  42 + ss.source_files = 'CNLiveCollectionModule/Classes/Controller/*.{h,m}'
  43 + end
  44 +
  45 + # View
  46 + s.subspec 'View' do |ss|
  47 + ss.source_files = 'CNLiveCollectionModule/Classes/View/*.{h,m}'
  48 + ss.dependency 'CNLiveCollectionModule/Model'
  49 + end
  50 +
  51 + # Model
  52 + s.subspec 'Model' do |ss|
  53 + ss.source_files = 'CNLiveCollectionModule/Classes/Model/*.{h,m}'
  54 + end
  55 +
  56 + s.resource_bundles = {
  57 + 'CNLiveCollectionModule' => ['CNLiveCollectionModule/Assets/CNLiveCollectionModule.xcassets']
  58 + }
  59 +
  60 + # s.public_header_files = 'Pod/Classes/**/*.h'
  61 + # s.frameworks = 'UIKit', 'MapKit'
  62 + # s.dependency 'AFNetworking', '~> 2.3'
  63 +
  64 + # pod
  65 + s.dependency 'CNLiveTripartiteManagement/QMUIKit'
  66 + s.dependency 'CNLiveTripartiteManagement/SDWebImage'
  67 + s.dependency 'CNLiveTripartiteManagement/Masonry'
  68 + s.dependency 'CNLiveTripartiteManagement/MJExtension'
  69 + s.dependency 'CNLiveTripartiteManagement/MJRefresh'
  70 +
  71 + # 服务层
  72 + s.dependency 'CNLiveServices'
  73 +
  74 + # 基类
  75 + s.dependency 'CNLiveCommonClass'
  76 +
  77 + # 环境
  78 + s.dependency 'CNLiveEnvironment'
  79 +
  80 + # 数据请求
  81 + s.dependency 'CNLiveRequestBastKit'
  82 +
  83 + # 用户信息本地化
  84 + s.dependency 'CNLiveUserManagement'
  85 +
  86 + # 管理类
  87 + s.dependency 'CNLiveManager'
  88 +
  89 + #类别
  90 + s.dependency 'CNLiveCategory'
  91 +
  92 +end
... ...
CNLiveCollectionModule/Assets/.gitkeep 0 → 100644
CNLiveCollectionModule/Assets/CNLiveCollectionModule.xcassets/Contents.json 0 → 100644
  1 +{
  2 + "info" : {
  3 + "version" : 1,
  4 + "author" : "xcode"
  5 + }
  6 +}
0 7 \ No newline at end of file
... ...
CNLiveCollectionModule/Assets/CNLiveCollectionModule.xcassets/collection_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" : "collection_back_black_b@2x.png",
  10 + "scale" : "2x"
  11 + },
  12 + {
  13 + "idiom" : "universal",
  14 + "filename" : "collection_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
... ...
CNLiveCollectionModule/Assets/CNLiveCollectionModule.xcassets/collection_back_black_b.imageset/collection_back_black_b@2x.png 0 → 100644

1.49 KB

CNLiveCollectionModule/Assets/CNLiveCollectionModule.xcassets/collection_back_black_b.imageset/collection_back_black_b@3x.png 0 → 100644

1.79 KB

CNLiveCollectionModule/Classes/.gitkeep 0 → 100644
CNLiveCollectionModule/Classes/Controller/CNLiveCollectionController.h 0 → 100644
  1 +//
  2 +// CNLiveCollectionController.h
  3 +// CNLiveCollectionModule
  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 +
  13 +#import <UIKit/UIKit.h>
  14 +#import "CNCommonViewController.h"
  15 +
  16 +NS_ASSUME_NONNULL_BEGIN
  17 +
  18 +@interface CNLiveCollectionController : CNCommonViewController
  19 +@property (nonatomic, assign) BOOL isScanCode;
  20 +
  21 +@end
  22 +
  23 +NS_ASSUME_NONNULL_END
... ...
CNLiveCollectionModule/Classes/Controller/CNLiveCollectionController.m 0 → 100644
  1 +//
  2 +// CNLiveCollectionController.m
  3 +// CNLiveCollectionModule
  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 "CNLiveCollectionController.h"
  10 +#import "QMUIKit.h"
  11 +#import <Masonry/Masonry.h>
  12 +#import <SDWebImage/SDWebImage.h>
  13 +#import "CNLiveCategory.h"
  14 +
  15 +#import "CNLiveCollectionNavigationBar.h"
  16 +#import "CNLiveCollectionCell.h"
  17 +#import "CNLiveCollectionModel.h"
  18 +
  19 +
  20 +@interface CNLiveCollectionController ()<UITableViewDelegate, UITableViewDataSource,QMUIAlertControllerDelegate,CNLiveCollectionNavigationBarDelegate>
  21 +@property (nonatomic, strong) CNLiveCollectionNavigationBar *navigationBar;
  22 +@property (nonatomic, strong) UITableView *tableView;
  23 +@property (nonatomic, strong) NSMutableArray *data;
  24 +
  25 +@end
  26 +
  27 +@implementation CNLiveCollectionController
  28 +static const NSInteger margin = 20;
  29 +static const CGFloat timeValue = 1.5;
  30 +#pragma mark - 数据
  31 +- (void)getData{
  32 +
  33 +}
  34 +
  35 +#pragma mark - 生命周期
  36 +- (void)viewWillAppear:(BOOL)animated{
  37 + [super viewWillAppear:animated];
  38 + self.navigationController.navigationBarHidden = YES;
  39 +}
  40 +
  41 +- (void)viewDidLoad {
  42 + [super viewDidLoad];
  43 + self.view.backgroundColor = [UIColor blackColor];
  44 + if (@available(iOS 11, *)) {
  45 + }
  46 + else {
  47 + self.automaticallyAdjustsScrollViewInsets = NO;
  48 + }
  49 + [self getData];
  50 + [self createSubViews];
  51 +}
  52 +
  53 +- (void)dealloc {
  54 + NSLog(@"CNLiveCollectionController -- dealloc");
  55 +
  56 +}
  57 +
  58 +- (void)createSubViews {
  59 + [self.view addSubview:self.navigationBar];
  60 + [self.view addSubview:self.tableView];
  61 +}
  62 +
  63 +#pragma mark - 响应方法
  64 +- (void)goBack {
  65 + if (self.presentingViewController != nil) {
  66 + [self dismissViewControllerAnimated:YES completion:nil];
  67 +
  68 + }
  69 + else {
  70 + [self.navigationController popViewControllerAnimated:YES];
  71 + }
  72 +}
  73 +
  74 +#pragma mark - 代理
  75 +#pragma mark - UITableViewDelegate
  76 +- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
  77 + CNLiveCollectionModel *model = self.data[indexPath.row];
  78 + return model.height;
  79 +}
  80 +
  81 +#pragma mark - UITableViewDataSource
  82 +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  83 + return self.data.count;
  84 +}
  85 +
  86 +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  87 + CNLiveCollectionCell *cell = [tableView dequeueReusableCellWithIdentifier:kCNLiveCollectionCell];
  88 + cell.selectionStyle = UITableViewCellSelectionStyleNone;
  89 + CNLiveCollectionModel *model = self.data[indexPath.row];
  90 + cell.model = model;
  91 + return cell;
  92 +}
  93 +
  94 +- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
  95 +
  96 +}
  97 +
  98 +- (void)navigationBar:(CNLiveCollectionNavigationBar *)navigationBar actionEvents:(NSString *)actionEvents{
  99 + if ([actionEvents isEqualToString:@"1"]) {
  100 + [self goBack];
  101 + }
  102 + else if ([actionEvents isEqualToString:@"2"]){
  103 + self.navigationBar.right.userInteractionEnabled = NO;
  104 + __weak typeof(self) weakSelf = self;
  105 + QMUIAlertAction *action1 = [QMUIAlertAction actionWithTitle:@"保存图片" style:QMUIAlertActionStyleDefault handler:^(__kindof QMUIAlertController *aAlertController, QMUIAlertAction *action) {
  106 + __strong typeof(weakSelf) strongSelf = weakSelf;
  107 + if(!strongSelf) return ;
  108 +
  109 + self.navigationBar.right.userInteractionEnabled = YES;
  110 +
  111 + }];
  112 + QMUIAlertAction *action2 = [QMUIAlertAction actionWithTitle:@"扫描二维码" style:QMUIAlertActionStyleDefault handler:^(__kindof QMUIAlertController *aAlertController, QMUIAlertAction *action) {
  113 + __strong typeof(weakSelf) strongSelf = weakSelf;
  114 + if(!strongSelf) return ;
  115 +
  116 + self.navigationBar.right.userInteractionEnabled = YES;
  117 + }];
  118 + QMUIAlertAction *action3 = [QMUIAlertAction actionWithTitle:@"重置二维码" style:QMUIAlertActionStyleDefault handler:^(__kindof QMUIAlertController *aAlertController, QMUIAlertAction *action) {
  119 + __strong typeof(weakSelf) strongSelf = weakSelf;
  120 + if(!strongSelf) return ;
  121 +
  122 + self.navigationBar.right.userInteractionEnabled = YES;
  123 +
  124 + }];
  125 + QMUIAlertAction *cancel = [QMUIAlertAction actionWithTitle:@"取消" style:QMUIAlertActionStyleCancel handler:^(__kindof QMUIAlertController *aAlertController, QMUIAlertAction *action) {
  126 + __strong typeof(weakSelf) strongSelf = weakSelf;
  127 + if(!strongSelf) return ;
  128 + self.navigationBar.right.userInteractionEnabled = YES;
  129 +
  130 + }];
  131 +
  132 + QMUIAlertController *alertController = [QMUIAlertController alertControllerWithTitle:@"" message:@"" preferredStyle:QMUIAlertControllerStyleActionSheet];
  133 + alertController.delegate = self;
  134 + [alertController addAction:action1];
  135 + [alertController addAction:action2];
  136 + [alertController addAction:action3];
  137 + [alertController addAction:cancel];
  138 +
  139 + NSMutableDictionary *titleAttributs = [[NSMutableDictionary alloc] initWithDictionary:alertController.alertTitleAttributes];
  140 +
  141 + titleAttributs[NSForegroundColorAttributeName] = [UIColor colorWithRed:35/255.0 green:212/255.0 blue:30/255.0 alpha:1.0];
  142 +
  143 + NSMutableDictionary *cancelAttributs = [[NSMutableDictionary alloc] initWithDictionary:alertController.alertTitleAttributes];
  144 + cancelAttributs[NSForegroundColorAttributeName] = [UIColor colorWithRed:51/255.0 green:51/255.0 blue:51/255.0 alpha:1.0];
  145 +
  146 + action1.buttonAttributes = titleAttributs;
  147 + action2.buttonAttributes = titleAttributs;
  148 + action3.buttonAttributes = titleAttributs;
  149 + cancel.buttonAttributes = cancelAttributs;
  150 +
  151 + [alertController showWithAnimated:YES];
  152 + }
  153 +}
  154 +- (void)didHideAlertController:(QMUIAlertController *)alertController{
  155 + self.navigationBar.right.userInteractionEnabled = YES;
  156 +
  157 +}
  158 +
  159 +#pragma mark - 懒加载
  160 +- (NSMutableArray *)data {
  161 + if (!_data) {
  162 + _data = [NSMutableArray array];
  163 + }
  164 + return _data;
  165 +}
  166 +- (UITableView *)tableView{
  167 + if(!_tableView){
  168 + _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, NavigationContentTop, SCREEN_WIDTH, SCREEN_HEIGHT-NavigationContentTop-50) style:UITableViewStylePlain];
  169 + _tableView.delegate = self;
  170 + _tableView.dataSource = self;
  171 + _tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
  172 + _tableView.backgroundColor = [UIColor colorWithRed:242/255.0 green:242/255.0 blue:242/255.0 alpha:1.0];
  173 + _tableView.estimatedRowHeight = 0;
  174 + _tableView.estimatedSectionHeaderHeight = 0;
  175 + _tableView.estimatedSectionFooterHeight = 0;
  176 + [_tableView registerClass:[CNLiveCollectionCell class] forCellReuseIdentifier:kCNLiveCollectionCell];
  177 + }
  178 + return _tableView;
  179 +}
  180 +- (CNLiveCollectionNavigationBar *)navigationBar {
  181 + if (!_navigationBar) {
  182 + _navigationBar = [[CNLiveCollectionNavigationBar alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, NavigationContentTop)];
  183 + _navigationBar.delegate = self;
  184 + _navigationBar.title.text = @"我的收藏";
  185 + }
  186 + return _navigationBar;
  187 +}
  188 +
  189 +@end
... ...
CNLiveCollectionModule/Classes/Model/CNLiveCollectionModel.h 0 → 100644
  1 +//
  2 +// CNLiveQrCodeModel.h
  3 +// CNLiveCollectionModule
  4 +//
  5 +// Created by 153993236@qq.com on 11/12/2019.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import <Foundation/Foundation.h>
  10 +
  11 +NS_ASSUME_NONNULL_BEGIN
  12 +typedef NS_ENUM(NSInteger, CNLiveCollectionCellType) {
  13 + CNLiveCollectionCellTextOnly = 0,
  14 + CNLiveCollectionCellImageOnly = 1,
  15 + CNLiveCollectionCellImageText = 2,
  16 + CNLiveCollectionCellVideo = 3,
  17 +};
  18 +
  19 +@interface CNLiveCollectionModel : NSObject
  20 +@property (nonatomic, copy) NSString *name;
  21 +@property (nonatomic, copy) NSString *pic;
  22 +
  23 +@property (nonatomic, copy) NSString *style;
  24 +
  25 +@property (nonatomic, strong) NSArray *titles;
  26 +@property (nonatomic, strong) NSArray *images;
  27 +
  28 +@property (nonatomic, assign) CNLiveCollectionCellType type;
  29 +
  30 +@property (nonatomic, assign) CGFloat height;
  31 +@property (nonatomic, assign) CGFloat margin;
  32 +
  33 +@end
  34 +
  35 +NS_ASSUME_NONNULL_END
... ...
CNLiveCollectionModule/Classes/Model/CNLiveCollectionModel.m 0 → 100644
  1 +//
  2 +// CNLiveQrCodeModel.m
  3 +// CNLiveCollectionModule
  4 +//
  5 +// Created by 153993236@qq.com on 11/12/2019.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveCollectionModel.h"
  10 +
  11 +@implementation CNLiveCollectionModel
  12 +static const NSInteger margin = 10;
  13 +
  14 +- (CNLiveCollectionCellType)type{
  15 + if([self.style isEqualToString:@"1"]){
  16 + return CNLiveCollectionCellTextOnly;
  17 + }
  18 + else if([self.style isEqualToString:@"2"]){
  19 + return CNLiveCollectionCellImageOnly;
  20 +
  21 + }
  22 + else if([self.style isEqualToString:@"3"]){
  23 + return CNLiveCollectionCellImageText;
  24 +
  25 + }
  26 + else if([self.style isEqualToString:@"3"]){
  27 + return CNLiveCollectionCellVideo;
  28 +
  29 + }
  30 + return CNLiveCollectionCellTextOnly;
  31 +}
  32 +
  33 +- (CGFloat)height{
  34 + CGFloat titleHeight = 50;
  35 + CGFloat btnHeight = 60;
  36 +
  37 + //文字
  38 + if(self.type == CNLiveCollectionCellTextOnly){
  39 + return 2*margin+titleHeight+btnHeight+margin;
  40 + }
  41 + //图片
  42 + else if(self.type == CNLiveCollectionCellImageOnly){
  43 + return 2*margin+titleHeight+ceilf(self.titles.count/4.0)*(btnHeight+margin);
  44 +
  45 + }
  46 + //视频
  47 + else if(self.type == CNLiveCollectionCellImageText){
  48 + // 电票的高度 80
  49 + return 2*margin+titleHeight+80+margin;
  50 +
  51 + }
  52 + //视频
  53 + else if(self.type == CNLiveCollectionCellVideo){
  54 + // 电票的高度 80
  55 + return 2*margin+titleHeight+80+margin;
  56 +
  57 + }
  58 + return 0.0000001f;
  59 +}
  60 +
  61 +@end
... ...
CNLiveCollectionModule/Classes/Module/CNLiveCollectionModule.h 0 → 100644
  1 +//
  2 +// CNLiveCollectionModule.h
  3 +// CNLiveCollectionModule
  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 <Foundation/Foundation.h>
  10 +
  11 +NS_ASSUME_NONNULL_BEGIN
  12 +
  13 +@interface CNLiveCollectionModule : NSObject
  14 +
  15 +@end
  16 +
  17 +NS_ASSUME_NONNULL_END
... ...
CNLiveCollectionModule/Classes/Module/CNLiveCollectionModule.m 0 → 100644
  1 +//
  2 +// CNLiveCollectionModule.m
  3 +// CNLiveCollectionModule
  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 "CNLiveCollectionModule.h"
  10 +#import "CNLiveServices.h"
  11 +
  12 +@BeeHiveMod(CNLiveCollectionModule)
  13 +@interface CNLiveCollectionModule()<BHModuleProtocol>
  14 +
  15 +@end
  16 +
  17 +@implementation CNLiveCollectionModule
  18 +- (id)init {
  19 + if (self = [super init]) {
  20 +
  21 + }
  22 + return self;
  23 +
  24 +}
  25 +
  26 +- (NSUInteger)moduleLevel {
  27 + return 0;
  28 +
  29 +}
  30 +
  31 +- (void)modSetUp:(BHContext *)context {
  32 + switch (context.env) {
  33 + case BHEnvironmentDev:
  34 + //....初始化开发环境
  35 + break;
  36 + case BHEnvironmentProd:
  37 + //....初始化生产环境
  38 + default:
  39 + break;
  40 + }
  41 +
  42 +}
  43 +
  44 +- (void)modInit:(BHContext *)context {
  45 +
  46 +}
  47 +
  48 +@end
... ...
CNLiveCollectionModule/Classes/Module/CNLiveCollectionService.h 0 → 100644
  1 +//
  2 +// CNLiveCollectionService.h
  3 +// CNLiveCollectionModule
  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 <Foundation/Foundation.h>
  10 +
  11 +NS_ASSUME_NONNULL_BEGIN
  12 +
  13 +@interface CNLiveCollectionService : NSObject
  14 +
  15 +@end
  16 +
  17 +NS_ASSUME_NONNULL_END
... ...
CNLiveCollectionModule/Classes/Module/CNLiveCollectionService.m 0 → 100644
  1 +//
  2 +// CNLiveQrCodeService.m
  3 +// CNLiveCollectionModule
  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 "CNLiveCollectionService.h"
  10 +#import "CNLiveServices.h"
  11 +
  12 +#import "CNLiveManager.h"
  13 +
  14 +#import "CNLiveCollectionController.h"
  15 +
  16 +@BeeHiveService(CNLiveCollectionServiceProtocol,CNLiveCollectionService)
  17 +@interface CNLiveCollectionService ()<CNLiveCollectionServiceProtocol>
  18 +
  19 +@end
  20 +
  21 +@implementation CNLiveCollectionService
  22 +
  23 +// 扫一扫
  24 +- (UIViewController *)getScanQrCodeController {
  25 + return [CNLiveCollectionController new];
  26 +}
  27 +
  28 +- (void)pushToScanQrCodeController{
  29 + CNLiveCollectionController *vc = [[CNLiveCollectionController alloc]init];
  30 + [CNLivePageJumpManager jumpViewController:vc];
  31 +}
  32 +
  33 +@end
... ...
CNLiveCollectionModule/Classes/View/CNLiveCollectionCell.h 0 → 100644
  1 +//
  2 +// CNLiveCollectionCell.h
  3 +// CNLiveCollectionModule
  4 +//
  5 +// Created by CNLive-zxw on 2019/2/26.
  6 +// Copyright © 2019年 cnlive. All rights reserved.
  7 +//
  8 +
  9 +#import <UIKit/UIKit.h>
  10 +
  11 +NS_ASSUME_NONNULL_BEGIN
  12 +#define kCNLiveCollectionCell @"CNLiveCollectionCell"
  13 +@class CNLiveCollectionModel;
  14 +@class CNLiveCollectionCell;
  15 +
  16 +@protocol CNLiveCollectionCellDelegate <NSObject>
  17 +- (void)clickedCellButton:(CNLiveCollectionCell *)cell type:(NSString *)type;
  18 +
  19 +@end
  20 +@interface CNLiveCollectionCell : UITableViewCell
  21 +@property (nonatomic, strong) CNLiveCollectionModel *model;
  22 +@property (nonatomic, weak) id<CNLiveCollectionCellDelegate> delegate;
  23 +
  24 +@end
  25 +
  26 +NS_ASSUME_NONNULL_END
... ...
CNLiveCollectionModule/Classes/View/CNLiveCollectionCell.m 0 → 100644
  1 +//
  2 +// CNLiveTaskListTableViewCell.m
  3 +// CNLiveCollectionModule
  4 +//
  5 +// Created by CNLiveLive-zxw on 2019/2/26.
  6 +// Copyright © 2019年 CNLivelive. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveCollectionCell.h"
  10 +#import <Masonry/Masonry.h>
  11 +#import <SDWebImage/SDWebImage.h>
  12 +#import "QMUIKit.h"
  13 +
  14 +#import "CNLiveCollectionModel.h"
  15 +
  16 +@interface CNLiveCollectionCell()
  17 +
  18 +@property (nonatomic, strong) UIImageView *leftImage;
  19 +@property (nonatomic, strong) UILabel *titleLabel;
  20 +@property (nonatomic, strong) UILabel *timeLabel;
  21 +@property (nonatomic, strong) UILabel *contentLabel;
  22 +
  23 +@end
  24 +
  25 +@implementation CNLiveCollectionCell
  26 +static const NSInteger margin = 10;
  27 +
  28 +#pragma mark - Init
  29 +- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
  30 + self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  31 + if (self) {
  32 + self.contentView.backgroundColor = [UIColor whiteColor];
  33 + [self setupUI];
  34 +
  35 + }
  36 + return self;
  37 +}
  38 +
  39 +#pragma mark - UI
  40 +- (void)setupUI{
  41 + [self.contentView addSubview:self.leftImage];
  42 + [self.contentView addSubview:self.titleLabel];
  43 + [self.contentView addSubview:self.timeLabel];
  44 + [self.contentView addSubview:self.contentLabel];
  45 +
  46 +}
  47 +- (void)layoutSubviews{
  48 + [super layoutSubviews];
  49 + [_leftImage mas_makeConstraints:^(MASConstraintMaker *make) {
  50 + make.top.equalTo(self.contentView.mas_top).with.offset(margin);
  51 + make.left.equalTo(self.contentView.mas_left).with.offset(margin*3/4.0);
  52 + make.width.offset(30);
  53 + make.height.offset(30);
  54 +
  55 + }];
  56 +
  57 + [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  58 + make.top.equalTo(self.contentView.mas_top).with.offset(margin/2.0);
  59 + make.left.equalTo(_leftImage.mas_right).with.offset(margin*3/4.0);
  60 + make.right.equalTo(_leftImage.mas_left).with.offset(-margin*3/4.0);
  61 + make.height.offset(20);
  62 +
  63 + }];
  64 +
  65 + [_timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  66 + make.top.equalTo(_titleLabel.mas_bottom).with.offset(margin/2.0);
  67 + make.left.equalTo(_leftImage.mas_right).with.offset(margin*3/4.0);
  68 + make.height.offset(10);
  69 +
  70 + }];
  71 +
  72 + [_contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  73 + make.top.equalTo(_titleLabel.mas_bottom).with.offset(margin/2.0);
  74 + make.left.equalTo(_timeLabel.mas_right).with.offset(margin*3/4.0);
  75 + make.height.offset(10);
  76 +
  77 + }];
  78 +
  79 +}
  80 +
  81 +#pragma mark - Data
  82 +- (void)setModel:(CNLiveCollectionModel *)model{
  83 + _model = model;
  84 +
  85 +}
  86 +- (void)awakeFromNib {
  87 + [super awakeFromNib];
  88 + // Initialization code
  89 +}
  90 +
  91 +- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  92 + [super setSelected:selected animated:animated];
  93 +
  94 + // Configure the view for the selected state
  95 +}
  96 +
  97 +#pragma mark - Lazy loading
  98 +- (UIImageView *)leftImage{
  99 + if (!_leftImage) {
  100 + _leftImage = [[UIImageView alloc] init];
  101 + _leftImage.userInteractionEnabled = YES;
  102 +
  103 + }
  104 + return _leftImage;
  105 +}
  106 +- (UILabel *)titleLabel{
  107 + if(_titleLabel == nil){
  108 + _titleLabel = [[UILabel alloc] init];
  109 + _titleLabel.textColor = [UIColor colorWithRed:40/255.0 green:40/255.0 blue:40/255.0 alpha:1.0];
  110 + _titleLabel.font = UIFontMake(16);
  111 + _titleLabel.userInteractionEnabled = YES;
  112 +
  113 + }
  114 + return _titleLabel;
  115 +
  116 +}
  117 +- (UILabel *)timeLabel{
  118 + if(_timeLabel == nil){
  119 + _timeLabel = [[UILabel alloc] init];
  120 + _timeLabel.textColor = [UIColor colorWithRed:155/255.0 green:155/255.0 blue:155/255.0 alpha:1.0];
  121 + _timeLabel.font = UIFontMake(12);
  122 + _timeLabel.userInteractionEnabled = YES;
  123 +
  124 + }
  125 + return _timeLabel;
  126 +
  127 +}
  128 +- (UILabel *)contentLabel{
  129 + if(_contentLabel == nil){
  130 + _contentLabel = [[UILabel alloc] init];
  131 + _contentLabel.textColor = [UIColor colorWithRed:155/255.0 green:155/255.0 blue:155/255.0 alpha:1.0];
  132 + _contentLabel.font = UIFontMake(12);
  133 + _contentLabel.userInteractionEnabled = YES;
  134 +
  135 + }
  136 + return _contentLabel;
  137 +
  138 +}
  139 +
  140 +@end
... ...
CNLiveCollectionModule/Classes/View/CNLiveCollectionNavigationBar.h 0 → 100644
  1 +//
  2 +// CNLiveCollectionNavigationBar.m
  3 +// CNLiveCollectionModule
  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 +@class CNLiveCollectionNavigationBar;
  13 +
  14 +@protocol CNLiveCollectionNavigationBarDelegate <NSObject>
  15 +- (void)navigationBar:(CNLiveCollectionNavigationBar *)navigationBar actionEvents:(NSString *)actionEvents;
  16 +
  17 +@end
  18 +
  19 +@interface CNLiveCollectionNavigationBar : UIView
  20 +@property (nonatomic, weak) id<CNLiveCollectionNavigationBarDelegate> delegate;
  21 +@property (nonatomic, strong) UIView *navView;
  22 +@property (nonatomic, strong) UIButton *left;
  23 +@property (nonatomic, strong) UILabel *title;
  24 +@property (nonatomic, strong, nullable) UIButton *right;
  25 +
  26 +
  27 +@end
  28 +
  29 +NS_ASSUME_NONNULL_END
... ...
CNLiveCollectionModule/Classes/View/CNLiveCollectionNavigationBar.m 0 → 100644
  1 +//
  2 +// CNLiveCollectionNavigationBar.m
  3 +// CNLiveCollectionModule
  4 +//
  5 +// Created by 153993236@qq.com on 11/12/2019.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveCollectionNavigationBar.h"
  10 +#import "QMUIKit.h"
  11 +#import "CNLiveCategory.h"
  12 +
  13 +@interface CNLiveCollectionNavigationBar ()
  14 +
  15 +@end
  16 +
  17 +@implementation CNLiveCollectionNavigationBar
  18 +static const NSInteger margin = 15;
  19 +
  20 +- (instancetype)initWithFrame:(CGRect)frame{
  21 + self = [super initWithFrame:frame];
  22 + if(self){
  23 + self.userInteractionEnabled = YES;
  24 + self.backgroundColor = [UIColor clearColor];
  25 + [self createSubViews];
  26 + }
  27 + return self;
  28 +}
  29 +
  30 +- (void)dealloc {
  31 + NSLog(@"CNLiveSettingNavigationBar -- dealloc");
  32 +}
  33 +
  34 +- (void)createSubViews {
  35 + [self addSubview:self.navView];
  36 + [self addSubview:self.left];
  37 + [self addSubview:self.title];
  38 + [self addSubview:self.right];
  39 +}
  40 +
  41 +/*
  42 + // Only override drawRect: if you perform custom drawing.
  43 + // An empty implementation adversely affects performance during animation.
  44 + - (void)drawRect:(CGRect)rect {
  45 + // Drawing code
  46 + }
  47 + */
  48 +
  49 +#pragma mark - 懒加载
  50 +- (UIView *)navView {
  51 + if (!_navView) {
  52 + _navView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, NavigationContentTop)];
  53 + _navView.backgroundColor = [UIColor whiteColor];
  54 + }
  55 + return _navView;
  56 +}
  57 +
  58 +- (UIButton *)left {
  59 + if (!_left) {
  60 + _left= [UIButton buttonWithType:UIButtonTypeCustom];
  61 + _left.adjustsImageWhenHighlighted = NO;
  62 + _left.frame = CGRectMake(margin, StatusBarHeight, NavigationBarHeight, NavigationBarHeight);
  63 + UIImage *image = [self getImageWithImageName:@"collection_back_black_b" bundleName:@"CNLiveCollectionModule" targetClass:[self class]];
  64 + [_left setImage:[image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] forState:UIControlStateNormal];
  65 + _left.titleLabel.font = [UIFont systemFontOfSize:15];
  66 + [_left setContentHorizontalAlignment:UIControlContentHorizontalAlignmentLeft];
  67 + [_left addTarget:self action:@selector(goBack) forControlEvents:UIControlEventTouchUpInside];
  68 + }
  69 + return _left;
  70 +}
  71 +
  72 +- (UILabel *)title {
  73 + if (!_title) {
  74 + _title = [[UILabel alloc] initWithFrame:CGRectMake(margin+NavigationBarHeight, StatusBarHeight, SCREEN_WIDTH-2*(margin+NavigationBarHeight), NavigationBarHeight)];
  75 + [_title setFont:[UIFont systemFontOfSize:18]];
  76 + _title.textColor = [UIColor blackColor];
  77 + _title.textAlignment = NSTextAlignmentCenter;
  78 + }
  79 + return _title;
  80 +}
  81 +
  82 +- (UIButton *)right {
  83 + if (!_right) {
  84 + _right = [UIButton buttonWithType:UIButtonTypeCustom];
  85 + _right.frame = CGRectMake(SCREEN_WIDTH-NavigationBarHeight-margin, StatusBarHeight, NavigationBarHeight, NavigationBarHeight);
  86 + [_right setContentHorizontalAlignment:UIControlContentHorizontalAlignmentRight];
  87 + _right.adjustsImageWhenHighlighted = NO;
  88 + _right.titleLabel.font = [UIFont systemFontOfSize:15];
  89 + [_right setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
  90 + [_right addTarget:self action:@selector(rightDidClicked:) forControlEvents:UIControlEventTouchUpInside];
  91 + }
  92 + return _right;
  93 +}
  94 +
  95 +#pragma mark - 响应方法
  96 +- (void)goBack{
  97 + if (self.delegate && [self.delegate respondsToSelector:@selector(navigationBar:actionEvents:)]) {
  98 + [self.delegate navigationBar:self actionEvents:@"1"];
  99 + }
  100 +}
  101 +- (void)rightDidClicked:(UIButton *)btn{
  102 + if (self.delegate && [self.delegate respondsToSelector:@selector(navigationBar:actionEvents:)]) {
  103 + [self.delegate navigationBar:self actionEvents:@"2"];
  104 + }
  105 +}
  106 +
  107 +@end
... ...
Example/CNLiveCollectionModule.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 + 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
  11 + 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; };
  12 + 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
  13 + 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; };
  14 + 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; };
  15 + 6003F59E195388D20070C39A /* CNLIVEAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* CNLIVEAppDelegate.m */; };
  16 + 6003F5A7195388D20070C39A /* CNLIVEViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* CNLIVEViewController.m */; };
  17 + 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; };
  18 + 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; };
  19 + 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
  20 + 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
  21 + 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; };
  22 + 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; };
  23 + 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */; };
  24 + 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; };
  25 + 881F78D9FB453FC96D2308C0 /* Pods_CNLiveCollectionModule_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3492186644DFEA16E1ABDDEC /* Pods_CNLiveCollectionModule_Tests.framework */; };
  26 + 959DB2900590C09FBDB776BE /* Pods_CNLiveCollectionModule_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2B4BAE01D425F11D03BD4DAA /* Pods_CNLiveCollectionModule_Example.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 = CNLiveCollectionModule;
  36 + };
  37 +/* End PBXContainerItemProxy section */
  38 +
  39 +/* Begin PBXFileReference section */
  40 + 01C2BEA02A559BF8EE8B90FC /* Pods-CNLiveCollectionModule_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveCollectionModule_Example.release.xcconfig"; path = "Target Support Files/Pods-CNLiveCollectionModule_Example/Pods-CNLiveCollectionModule_Example.release.xcconfig"; sourceTree = "<group>"; };
  41 + 2B4BAE01D425F11D03BD4DAA /* Pods_CNLiveCollectionModule_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CNLiveCollectionModule_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
  42 + 3492186644DFEA16E1ABDDEC /* Pods_CNLiveCollectionModule_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CNLiveCollectionModule_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
  43 + 4DCE8F636CABF928B6611D2B /* CNLiveCollectionModule.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = CNLiveCollectionModule.podspec; path = ../CNLiveCollectionModule.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
  44 + 5A863CBB6AC7F956E252EB38 /* Pods-CNLiveCollectionModule_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveCollectionModule_Tests.debug.xcconfig"; path = "Target Support Files/Pods-CNLiveCollectionModule_Tests/Pods-CNLiveCollectionModule_Tests.debug.xcconfig"; sourceTree = "<group>"; };
  45 + 6003F58A195388D20070C39A /* CNLiveCollectionModule_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CNLiveCollectionModule_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
  46 + 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
  47 + 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
  48 + 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
  49 + 6003F595195388D20070C39A /* CNLiveCollectionModule-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "CNLiveCollectionModule-Info.plist"; sourceTree = "<group>"; };
  50 + 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
  51 + 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
  52 + 6003F59B195388D20070C39A /* CNLiveCollectionModule-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CNLiveCollectionModule-Prefix.pch"; sourceTree = "<group>"; };
  53 + 6003F59C195388D20070C39A /* CNLIVEAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLIVEAppDelegate.h; sourceTree = "<group>"; };
  54 + 6003F59D195388D20070C39A /* CNLIVEAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLIVEAppDelegate.m; sourceTree = "<group>"; };
  55 + 6003F5A5195388D20070C39A /* CNLIVEViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLIVEViewController.h; sourceTree = "<group>"; };
  56 + 6003F5A6195388D20070C39A /* CNLIVEViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLIVEViewController.m; sourceTree = "<group>"; };
  57 + 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
  58 + 6003F5AE195388D20070C39A /* CNLiveCollectionModule_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CNLiveCollectionModule_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
  59 + 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
  60 + 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = "<group>"; };
  61 + 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
  62 + 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = "<group>"; };
  63 + 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = "<group>"; };
  64 + 71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
  65 + 737D668595209F196ECCB19C /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
  66 + 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
  67 + 9ABFA23662146CDF3FEEB166 /* Pods-CNLiveCollectionModule_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveCollectionModule_Example.debug.xcconfig"; path = "Target Support Files/Pods-CNLiveCollectionModule_Example/Pods-CNLiveCollectionModule_Example.debug.xcconfig"; sourceTree = "<group>"; };
  68 + E7AA1173082D2108873E46AB /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
  69 + FF69786B5859264486B37E1B /* Pods-CNLiveCollectionModule_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveCollectionModule_Tests.release.xcconfig"; path = "Target Support Files/Pods-CNLiveCollectionModule_Tests/Pods-CNLiveCollectionModule_Tests.release.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 + 959DB2900590C09FBDB776BE /* Pods_CNLiveCollectionModule_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 + 881F78D9FB453FC96D2308C0 /* Pods_CNLiveCollectionModule_Tests.framework in Frameworks */,
  92 + );
  93 + runOnlyForDeploymentPostprocessing = 0;
  94 + };
  95 +/* End PBXFrameworksBuildPhase section */
  96 +
  97 +/* Begin PBXGroup section */
  98 + 6003F581195388D10070C39A = {
  99 + isa = PBXGroup;
  100 + children = (
  101 + 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */,
  102 + 6003F593195388D20070C39A /* Example for CNLiveCollectionModule */,
  103 + 6003F5B5195388D20070C39A /* Tests */,
  104 + 6003F58C195388D20070C39A /* Frameworks */,
  105 + 6003F58B195388D20070C39A /* Products */,
  106 + E53D7BF23A1693F285E71237 /* Pods */,
  107 + );
  108 + sourceTree = "<group>";
  109 + };
  110 + 6003F58B195388D20070C39A /* Products */ = {
  111 + isa = PBXGroup;
  112 + children = (
  113 + 6003F58A195388D20070C39A /* CNLiveCollectionModule_Example.app */,
  114 + 6003F5AE195388D20070C39A /* CNLiveCollectionModule_Tests.xctest */,
  115 + );
  116 + name = Products;
  117 + sourceTree = "<group>";
  118 + };
  119 + 6003F58C195388D20070C39A /* Frameworks */ = {
  120 + isa = PBXGroup;
  121 + children = (
  122 + 6003F58D195388D20070C39A /* Foundation.framework */,
  123 + 6003F58F195388D20070C39A /* CoreGraphics.framework */,
  124 + 6003F591195388D20070C39A /* UIKit.framework */,
  125 + 6003F5AF195388D20070C39A /* XCTest.framework */,
  126 + 2B4BAE01D425F11D03BD4DAA /* Pods_CNLiveCollectionModule_Example.framework */,
  127 + 3492186644DFEA16E1ABDDEC /* Pods_CNLiveCollectionModule_Tests.framework */,
  128 + );
  129 + name = Frameworks;
  130 + sourceTree = "<group>";
  131 + };
  132 + 6003F593195388D20070C39A /* Example for CNLiveCollectionModule */ = {
  133 + isa = PBXGroup;
  134 + children = (
  135 + 6003F59C195388D20070C39A /* CNLIVEAppDelegate.h */,
  136 + 6003F59D195388D20070C39A /* CNLIVEAppDelegate.m */,
  137 + 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */,
  138 + 6003F5A5195388D20070C39A /* CNLIVEViewController.h */,
  139 + 6003F5A6195388D20070C39A /* CNLIVEViewController.m */,
  140 + 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */,
  141 + 6003F5A8195388D20070C39A /* Images.xcassets */,
  142 + 6003F594195388D20070C39A /* Supporting Files */,
  143 + );
  144 + name = "Example for CNLiveCollectionModule";
  145 + path = CNLiveCollectionModule;
  146 + sourceTree = "<group>";
  147 + };
  148 + 6003F594195388D20070C39A /* Supporting Files */ = {
  149 + isa = PBXGroup;
  150 + children = (
  151 + 6003F595195388D20070C39A /* CNLiveCollectionModule-Info.plist */,
  152 + 6003F596195388D20070C39A /* InfoPlist.strings */,
  153 + 6003F599195388D20070C39A /* main.m */,
  154 + 6003F59B195388D20070C39A /* CNLiveCollectionModule-Prefix.pch */,
  155 + );
  156 + name = "Supporting Files";
  157 + sourceTree = "<group>";
  158 + };
  159 + 6003F5B5195388D20070C39A /* Tests */ = {
  160 + isa = PBXGroup;
  161 + children = (
  162 + 6003F5BB195388D20070C39A /* Tests.m */,
  163 + 6003F5B6195388D20070C39A /* Supporting Files */,
  164 + );
  165 + path = Tests;
  166 + sourceTree = "<group>";
  167 + };
  168 + 6003F5B6195388D20070C39A /* Supporting Files */ = {
  169 + isa = PBXGroup;
  170 + children = (
  171 + 6003F5B7195388D20070C39A /* Tests-Info.plist */,
  172 + 6003F5B8195388D20070C39A /* InfoPlist.strings */,
  173 + 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */,
  174 + );
  175 + name = "Supporting Files";
  176 + sourceTree = "<group>";
  177 + };
  178 + 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = {
  179 + isa = PBXGroup;
  180 + children = (
  181 + 4DCE8F636CABF928B6611D2B /* CNLiveCollectionModule.podspec */,
  182 + 737D668595209F196ECCB19C /* README.md */,
  183 + E7AA1173082D2108873E46AB /* LICENSE */,
  184 + );
  185 + name = "Podspec Metadata";
  186 + sourceTree = "<group>";
  187 + };
  188 + E53D7BF23A1693F285E71237 /* Pods */ = {
  189 + isa = PBXGroup;
  190 + children = (
  191 + 9ABFA23662146CDF3FEEB166 /* Pods-CNLiveCollectionModule_Example.debug.xcconfig */,
  192 + 01C2BEA02A559BF8EE8B90FC /* Pods-CNLiveCollectionModule_Example.release.xcconfig */,
  193 + 5A863CBB6AC7F956E252EB38 /* Pods-CNLiveCollectionModule_Tests.debug.xcconfig */,
  194 + FF69786B5859264486B37E1B /* Pods-CNLiveCollectionModule_Tests.release.xcconfig */,
  195 + );
  196 + path = Pods;
  197 + sourceTree = "<group>";
  198 + };
  199 +/* End PBXGroup section */
  200 +
  201 +/* Begin PBXNativeTarget section */
  202 + 6003F589195388D20070C39A /* CNLiveCollectionModule_Example */ = {
  203 + isa = PBXNativeTarget;
  204 + buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveCollectionModule_Example" */;
  205 + buildPhases = (
  206 + 9D5A20D6D12364DD9DF1B89D /* [CP] Check Pods Manifest.lock */,
  207 + 6003F586195388D20070C39A /* Sources */,
  208 + 6003F587195388D20070C39A /* Frameworks */,
  209 + 6003F588195388D20070C39A /* Resources */,
  210 + F54BF3B18A0671862576A88E /* [CP] Embed Pods Frameworks */,
  211 + );
  212 + buildRules = (
  213 + );
  214 + dependencies = (
  215 + );
  216 + name = CNLiveCollectionModule_Example;
  217 + productName = CNLiveCollectionModule;
  218 + productReference = 6003F58A195388D20070C39A /* CNLiveCollectionModule_Example.app */;
  219 + productType = "com.apple.product-type.application";
  220 + };
  221 + 6003F5AD195388D20070C39A /* CNLiveCollectionModule_Tests */ = {
  222 + isa = PBXNativeTarget;
  223 + buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveCollectionModule_Tests" */;
  224 + buildPhases = (
  225 + 960F3AF809FA34C6E96A9461 /* [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 = CNLiveCollectionModule_Tests;
  236 + productName = CNLiveCollectionModuleTests;
  237 + productReference = 6003F5AE195388D20070C39A /* CNLiveCollectionModule_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 "CNLiveCollectionModule" */;
  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 /* CNLiveCollectionModule_Example */,
  270 + 6003F5AD195388D20070C39A /* CNLiveCollectionModule_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 + 960F3AF809FA34C6E96A9461 /* [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-CNLiveCollectionModule_Tests-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 + 9D5A20D6D12364DD9DF1B89D /* [CP] Check Pods Manifest.lock */ = {
  321 + isa = PBXShellScriptBuildPhase;
  322 + buildActionMask = 2147483647;
  323 + files = (
  324 + );
  325 + inputFileListPaths = (
  326 + );
  327 + inputPaths = (
  328 + "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
  329 + "${PODS_ROOT}/Manifest.lock",
  330 + );
  331 + name = "[CP] Check Pods Manifest.lock";
  332 + outputFileListPaths = (
  333 + );
  334 + outputPaths = (
  335 + "$(DERIVED_FILE_DIR)/Pods-CNLiveCollectionModule_Example-checkManifestLockResult.txt",
  336 + );
  337 + runOnlyForDeploymentPostprocessing = 0;
  338 + shellPath = /bin/sh;
  339 + 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";
  340 + showEnvVarsInLog = 0;
  341 + };
  342 + F54BF3B18A0671862576A88E /* [CP] Embed Pods Frameworks */ = {
  343 + isa = PBXShellScriptBuildPhase;
  344 + buildActionMask = 2147483647;
  345 + files = (
  346 + );
  347 + inputPaths = (
  348 + "${PODS_ROOT}/Target Support Files/Pods-CNLiveCollectionModule_Example/Pods-CNLiveCollectionModule_Example-frameworks.sh",
  349 + "${BUILT_PRODUCTS_DIR}/AFNetworking/AFNetworking.framework",
  350 + "${BUILT_PRODUCTS_DIR}/CNLiveBaseKit/CNLiveBaseKit.framework",
  351 + "${BUILT_PRODUCTS_DIR}/CNLiveBeeHive/CNLiveBeeHive.framework",
  352 + "${BUILT_PRODUCTS_DIR}/CNLiveCategory/CNLiveCategory.framework",
  353 + "${BUILT_PRODUCTS_DIR}/CNLiveCollectionModule/CNLiveCollectionModule.framework",
  354 + "${BUILT_PRODUCTS_DIR}/CNLiveCommonClass/CNLiveCommonClass.framework",
  355 + "${BUILT_PRODUCTS_DIR}/CNLiveEnvironment/CNLiveEnvironment.framework",
  356 + "${BUILT_PRODUCTS_DIR}/CNLiveManager/CNLiveManager.framework",
  357 + "${BUILT_PRODUCTS_DIR}/CNLiveRequestBastKit/CNLiveRequestBastKit.framework",
  358 + "${BUILT_PRODUCTS_DIR}/CNLiveTripartiteManagement/CNLiveTripartiteManagement.framework",
  359 + "${BUILT_PRODUCTS_DIR}/CNLiveUserManagement/CNLiveUserManagement.framework",
  360 + "${BUILT_PRODUCTS_DIR}/MJExtension/MJExtension.framework",
  361 + "${BUILT_PRODUCTS_DIR}/MJRefresh/MJRefresh.framework",
  362 + "${BUILT_PRODUCTS_DIR}/Masonry/Masonry.framework",
  363 + "${BUILT_PRODUCTS_DIR}/QMUIKit/QMUIKit.framework",
  364 + "${BUILT_PRODUCTS_DIR}/SDWebImage/SDWebImage.framework",
  365 + );
  366 + name = "[CP] Embed Pods Frameworks";
  367 + outputPaths = (
  368 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AFNetworking.framework",
  369 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBaseKit.framework",
  370 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBeeHive.framework",
  371 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCategory.framework",
  372 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCollectionModule.framework",
  373 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveCommonClass.framework",
  374 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveEnvironment.framework",
  375 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveManager.framework",
  376 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveRequestBastKit.framework",
  377 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveTripartiteManagement.framework",
  378 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveUserManagement.framework",
  379 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MJExtension.framework",
  380 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MJRefresh.framework",
  381 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Masonry.framework",
  382 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/QMUIKit.framework",
  383 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImage.framework",
  384 + );
  385 + runOnlyForDeploymentPostprocessing = 0;
  386 + shellPath = /bin/sh;
  387 + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CNLiveCollectionModule_Example/Pods-CNLiveCollectionModule_Example-frameworks.sh\"\n";
  388 + showEnvVarsInLog = 0;
  389 + };
  390 +/* End PBXShellScriptBuildPhase section */
  391 +
  392 +/* Begin PBXSourcesBuildPhase section */
  393 + 6003F586195388D20070C39A /* Sources */ = {
  394 + isa = PBXSourcesBuildPhase;
  395 + buildActionMask = 2147483647;
  396 + files = (
  397 + 6003F59E195388D20070C39A /* CNLIVEAppDelegate.m in Sources */,
  398 + 6003F5A7195388D20070C39A /* CNLIVEViewController.m in Sources */,
  399 + 6003F59A195388D20070C39A /* main.m in Sources */,
  400 + );
  401 + runOnlyForDeploymentPostprocessing = 0;
  402 + };
  403 + 6003F5AA195388D20070C39A /* Sources */ = {
  404 + isa = PBXSourcesBuildPhase;
  405 + buildActionMask = 2147483647;
  406 + files = (
  407 + 6003F5BC195388D20070C39A /* Tests.m in Sources */,
  408 + );
  409 + runOnlyForDeploymentPostprocessing = 0;
  410 + };
  411 +/* End PBXSourcesBuildPhase section */
  412 +
  413 +/* Begin PBXTargetDependency section */
  414 + 6003F5B4195388D20070C39A /* PBXTargetDependency */ = {
  415 + isa = PBXTargetDependency;
  416 + target = 6003F589195388D20070C39A /* CNLiveCollectionModule_Example */;
  417 + targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */;
  418 + };
  419 +/* End PBXTargetDependency section */
  420 +
  421 +/* Begin PBXVariantGroup section */
  422 + 6003F596195388D20070C39A /* InfoPlist.strings */ = {
  423 + isa = PBXVariantGroup;
  424 + children = (
  425 + 6003F597195388D20070C39A /* en */,
  426 + );
  427 + name = InfoPlist.strings;
  428 + sourceTree = "<group>";
  429 + };
  430 + 6003F5B8195388D20070C39A /* InfoPlist.strings */ = {
  431 + isa = PBXVariantGroup;
  432 + children = (
  433 + 6003F5B9195388D20070C39A /* en */,
  434 + );
  435 + name = InfoPlist.strings;
  436 + sourceTree = "<group>";
  437 + };
  438 + 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */ = {
  439 + isa = PBXVariantGroup;
  440 + children = (
  441 + 71719F9E1E33DC2100824A3D /* Base */,
  442 + );
  443 + name = LaunchScreen.storyboard;
  444 + sourceTree = "<group>";
  445 + };
  446 +/* End PBXVariantGroup section */
  447 +
  448 +/* Begin XCBuildConfiguration section */
  449 + 6003F5BD195388D20070C39A /* Debug */ = {
  450 + isa = XCBuildConfiguration;
  451 + buildSettings = {
  452 + ALWAYS_SEARCH_USER_PATHS = NO;
  453 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  454 + CLANG_CXX_LIBRARY = "libc++";
  455 + CLANG_ENABLE_MODULES = YES;
  456 + CLANG_ENABLE_OBJC_ARC = YES;
  457 + CLANG_WARN_BOOL_CONVERSION = YES;
  458 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  459 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  460 + CLANG_WARN_EMPTY_BODY = YES;
  461 + CLANG_WARN_ENUM_CONVERSION = YES;
  462 + CLANG_WARN_INT_CONVERSION = YES;
  463 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  464 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
  465 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  466 + COPY_PHASE_STRIP = NO;
  467 + ENABLE_TESTABILITY = YES;
  468 + GCC_C_LANGUAGE_STANDARD = gnu99;
  469 + GCC_DYNAMIC_NO_PIC = NO;
  470 + GCC_OPTIMIZATION_LEVEL = 0;
  471 + GCC_PREPROCESSOR_DEFINITIONS = (
  472 + "DEBUG=1",
  473 + "$(inherited)",
  474 + );
  475 + GCC_SYMBOLS_PRIVATE_EXTERN = NO;
  476 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  477 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  478 + GCC_WARN_UNDECLARED_SELECTOR = YES;
  479 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  480 + GCC_WARN_UNUSED_FUNCTION = YES;
  481 + GCC_WARN_UNUSED_VARIABLE = YES;
  482 + IPHONEOS_DEPLOYMENT_TARGET = 9.3;
  483 + ONLY_ACTIVE_ARCH = YES;
  484 + SDKROOT = iphoneos;
  485 + TARGETED_DEVICE_FAMILY = "1,2";
  486 + };
  487 + name = Debug;
  488 + };
  489 + 6003F5BE195388D20070C39A /* Release */ = {
  490 + isa = XCBuildConfiguration;
  491 + buildSettings = {
  492 + ALWAYS_SEARCH_USER_PATHS = NO;
  493 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  494 + CLANG_CXX_LIBRARY = "libc++";
  495 + CLANG_ENABLE_MODULES = YES;
  496 + CLANG_ENABLE_OBJC_ARC = YES;
  497 + CLANG_WARN_BOOL_CONVERSION = YES;
  498 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  499 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  500 + CLANG_WARN_EMPTY_BODY = YES;
  501 + CLANG_WARN_ENUM_CONVERSION = YES;
  502 + CLANG_WARN_INT_CONVERSION = YES;
  503 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  504 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
  505 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  506 + COPY_PHASE_STRIP = YES;
  507 + ENABLE_NS_ASSERTIONS = NO;
  508 + GCC_C_LANGUAGE_STANDARD = gnu99;
  509 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  510 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  511 + GCC_WARN_UNDECLARED_SELECTOR = YES;
  512 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  513 + GCC_WARN_UNUSED_FUNCTION = YES;
  514 + GCC_WARN_UNUSED_VARIABLE = YES;
  515 + IPHONEOS_DEPLOYMENT_TARGET = 9.3;
  516 + SDKROOT = iphoneos;
  517 + TARGETED_DEVICE_FAMILY = "1,2";
  518 + VALIDATE_PRODUCT = YES;
  519 + };
  520 + name = Release;
  521 + };
  522 + 6003F5C0195388D20070C39A /* Debug */ = {
  523 + isa = XCBuildConfiguration;
  524 + baseConfigurationReference = 9ABFA23662146CDF3FEEB166 /* Pods-CNLiveCollectionModule_Example.debug.xcconfig */;
  525 + buildSettings = {
  526 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  527 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  528 + GCC_PREFIX_HEADER = "CNLiveCollectionModule/CNLiveCollectionModule-Prefix.pch";
  529 + INFOPLIST_FILE = "CNLiveCollectionModule/CNLiveCollectionModule-Info.plist";
  530 + MODULE_NAME = ExampleApp;
  531 + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
  532 + PRODUCT_NAME = "$(TARGET_NAME)";
  533 + SWIFT_VERSION = 4.0;
  534 + WRAPPER_EXTENSION = app;
  535 + };
  536 + name = Debug;
  537 + };
  538 + 6003F5C1195388D20070C39A /* Release */ = {
  539 + isa = XCBuildConfiguration;
  540 + baseConfigurationReference = 01C2BEA02A559BF8EE8B90FC /* Pods-CNLiveCollectionModule_Example.release.xcconfig */;
  541 + buildSettings = {
  542 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  543 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  544 + GCC_PREFIX_HEADER = "CNLiveCollectionModule/CNLiveCollectionModule-Prefix.pch";
  545 + INFOPLIST_FILE = "CNLiveCollectionModule/CNLiveCollectionModule-Info.plist";
  546 + MODULE_NAME = ExampleApp;
  547 + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
  548 + PRODUCT_NAME = "$(TARGET_NAME)";
  549 + SWIFT_VERSION = 4.0;
  550 + WRAPPER_EXTENSION = app;
  551 + };
  552 + name = Release;
  553 + };
  554 + 6003F5C3195388D20070C39A /* Debug */ = {
  555 + isa = XCBuildConfiguration;
  556 + baseConfigurationReference = 5A863CBB6AC7F956E252EB38 /* Pods-CNLiveCollectionModule_Tests.debug.xcconfig */;
  557 + buildSettings = {
  558 + BUNDLE_LOADER = "$(TEST_HOST)";
  559 + FRAMEWORK_SEARCH_PATHS = (
  560 + "$(PLATFORM_DIR)/Developer/Library/Frameworks",
  561 + "$(inherited)",
  562 + "$(DEVELOPER_FRAMEWORKS_DIR)",
  563 + );
  564 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  565 + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch";
  566 + GCC_PREPROCESSOR_DEFINITIONS = (
  567 + "DEBUG=1",
  568 + "$(inherited)",
  569 + );
  570 + INFOPLIST_FILE = "Tests/Tests-Info.plist";
  571 + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
  572 + PRODUCT_NAME = "$(TARGET_NAME)";
  573 + SWIFT_VERSION = 4.0;
  574 + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CNLiveCollectionModule_Example.app/CNLiveCollectionModule_Example";
  575 + WRAPPER_EXTENSION = xctest;
  576 + };
  577 + name = Debug;
  578 + };
  579 + 6003F5C4195388D20070C39A /* Release */ = {
  580 + isa = XCBuildConfiguration;
  581 + baseConfigurationReference = FF69786B5859264486B37E1B /* Pods-CNLiveCollectionModule_Tests.release.xcconfig */;
  582 + buildSettings = {
  583 + BUNDLE_LOADER = "$(TEST_HOST)";
  584 + FRAMEWORK_SEARCH_PATHS = (
  585 + "$(PLATFORM_DIR)/Developer/Library/Frameworks",
  586 + "$(inherited)",
  587 + "$(DEVELOPER_FRAMEWORKS_DIR)",
  588 + );
  589 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  590 + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch";
  591 + INFOPLIST_FILE = "Tests/Tests-Info.plist";
  592 + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
  593 + PRODUCT_NAME = "$(TARGET_NAME)";
  594 + SWIFT_VERSION = 4.0;
  595 + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CNLiveCollectionModule_Example.app/CNLiveCollectionModule_Example";
  596 + WRAPPER_EXTENSION = xctest;
  597 + };
  598 + name = Release;
  599 + };
  600 +/* End XCBuildConfiguration section */
  601 +
  602 +/* Begin XCConfigurationList section */
  603 + 6003F585195388D10070C39A /* Build configuration list for PBXProject "CNLiveCollectionModule" */ = {
  604 + isa = XCConfigurationList;
  605 + buildConfigurations = (
  606 + 6003F5BD195388D20070C39A /* Debug */,
  607 + 6003F5BE195388D20070C39A /* Release */,
  608 + );
  609 + defaultConfigurationIsVisible = 0;
  610 + defaultConfigurationName = Release;
  611 + };
  612 + 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveCollectionModule_Example" */ = {
  613 + isa = XCConfigurationList;
  614 + buildConfigurations = (
  615 + 6003F5C0195388D20070C39A /* Debug */,
  616 + 6003F5C1195388D20070C39A /* Release */,
  617 + );
  618 + defaultConfigurationIsVisible = 0;
  619 + defaultConfigurationName = Release;
  620 + };
  621 + 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveCollectionModule_Tests" */ = {
  622 + isa = XCConfigurationList;
  623 + buildConfigurations = (
  624 + 6003F5C3195388D20070C39A /* Debug */,
  625 + 6003F5C4195388D20070C39A /* Release */,
  626 + );
  627 + defaultConfigurationIsVisible = 0;
  628 + defaultConfigurationName = Release;
  629 + };
  630 +/* End XCConfigurationList section */
  631 + };
  632 + rootObject = 6003F582195388D10070C39A /* Project object */;
  633 +}
... ...
Example/CNLiveCollectionModule.xcodeproj/xcshareddata/xcschemes/CNLiveCollectionModule-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 = "CNLiveCollectionModule_Example.app"
  19 + BlueprintName = "CNLiveCollectionModule_Example"
  20 + ReferencedContainer = "container:CNLiveCollectionModule.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 = "CNLiveCollectionModule_Tests.xctest"
  37 + BlueprintName = "CNLiveCollectionModule_Tests"
  38 + ReferencedContainer = "container:CNLiveCollectionModule.xcodeproj">
  39 + </BuildableReference>
  40 + </TestableReference>
  41 + </Testables>
  42 + <MacroExpansion>
  43 + <BuildableReference
  44 + BuildableIdentifier = "primary"
  45 + BlueprintIdentifier = "6003F589195388D20070C39A"
  46 + BuildableName = "CNLiveCollectionModule_Example.app"
  47 + BlueprintName = "CNLiveCollectionModule_Example"
  48 + ReferencedContainer = "container:CNLiveCollectionModule.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 = "CNLiveCollectionModule_Example.app"
  70 + BlueprintName = "CNLiveCollectionModule_Example"
  71 + ReferencedContainer = "container:CNLiveCollectionModule.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 = "CNLiveCollectionModule_Example.app"
  89 + BlueprintName = "CNLiveCollectionModule_Example"
  90 + ReferencedContainer = "container:CNLiveCollectionModule.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/CNLiveCollectionModule/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/CNLiveCollectionModule/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/CNLiveCollectionModule/CNLIVEAppDelegate.h 0 → 100644
  1 +//
  2 +// CNLIVEAppDelegate.h
  3 +// CNLiveCollectionModule
  4 +//
  5 +// Created by 153993236@qq.com on 12/05/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/CNLiveCollectionModule/CNLIVEAppDelegate.m 0 → 100644
  1 +//
  2 +// CNLIVEAppDelegate.m
  3 +// CNLiveCollectionModule
  4 +//
  5 +// Created by 153993236@qq.com on 12/05/2019.
  6 +// Copyright (c) 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLIVEAppDelegate.h"
  10 +#import "CNLiveCollectionController.h"
  11 +#import "CNLiveEnvironment.h"
  12 +#import "CNUserInfoManager.h"
  13 +
  14 +@implementation CNLIVEAppDelegate
  15 +
  16 +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  17 +{
  18 + // Override point for customization after application launch.
  19 + [CNLiveEnvironmentManager setEnvironment:CNLiveProductionAppStore];
  20 + self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];//UIScreen mainScreen].bounds个人理解获取屏幕的硬件信息然后设置尺寸大小
  21 + CNLiveCollectionController *vc = [[CNLiveCollectionController alloc] init];
  22 + UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:vc];
  23 + self.window.rootViewController = nav;//设置根视图控制器
  24 + [self.window makeKeyAndVisible];
  25 + [CNUserInfoManager saveUserinfoDic:@{
  26 + @"bigFaceUrl":@"http://yweb0.cnliveimg.com/images/headImg/2019/1030/1572439148697.jpg",
  27 + @"countryCode":@"86",
  28 + @"email":@"",
  29 + @"extInfo":@"",
  30 + @"faceUrl":@"http://yweb0.cnliveimg.com/images/headImg/2019/1030/1572439148697_small.jpg",
  31 + @"gender":@"m",
  32 + @"hUid":@"",
  33 + @"isNewUser":@"0",
  34 + @"location":@"北京市海淀区",
  35 + @"mobile":@"17600922519",
  36 + @"nickName":@"金帝",
  37 + @"platformId":@"769_jetj7bq525",
  38 + @"qqUid":@"",
  39 + @"renrenUid":@"",
  40 + @"sinaUid":@"",
  41 + @"token":@"RkFYeLkl/u5S7tW8UcOkT3rfLTP/Ua8NIkdEsKlcolvl/yxTMNbAYXmmJyhKGpkj",
  42 + @"uid":@"10514405",
  43 + @"wxUid":@""
  44 + }];
  45 + return YES;
  46 +}
  47 +
  48 +- (void)applicationWillResignActive:(UIApplication *)application
  49 +{
  50 + // 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.
  51 + // 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.
  52 +}
  53 +
  54 +- (void)applicationDidEnterBackground:(UIApplication *)application
  55 +{
  56 + // 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.
  57 + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
  58 +}
  59 +
  60 +- (void)applicationWillEnterForeground:(UIApplication *)application
  61 +{
  62 + // 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.
  63 +}
  64 +
  65 +- (void)applicationDidBecomeActive:(UIApplication *)application
  66 +{
  67 + // 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.
  68 +}
  69 +
  70 +- (void)applicationWillTerminate:(UIApplication *)application
  71 +{
  72 + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
  73 +}
  74 +
  75 +@end
... ...
Example/CNLiveCollectionModule/CNLIVEViewController.h 0 → 100644
  1 +//
  2 +// CNLIVEViewController.h
  3 +// CNLiveCollectionModule
  4 +//
  5 +// Created by 153993236@qq.com on 12/05/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/CNLiveCollectionModule/CNLIVEViewController.m 0 → 100644
  1 +//
  2 +// CNLIVEViewController.m
  3 +// CNLiveCollectionModule
  4 +//
  5 +// Created by 153993236@qq.com on 12/05/2019.
  6 +// Copyright (c) 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLIVEViewController.h"
  10 +
  11 +@interface CNLIVEViewController ()
  12 +
  13 +@end
  14 +
  15 +@implementation CNLIVEViewController
  16 +
  17 +- (void)viewDidLoad
  18 +{
  19 + [super viewDidLoad];
  20 + // Do any additional setup after loading the view, typically from a nib.
  21 +}
  22 +
  23 +- (void)didReceiveMemoryWarning
  24 +{
  25 + [super didReceiveMemoryWarning];
  26 + // Dispose of any resources that can be recreated.
  27 +}
  28 +
  29 +@end
... ...
Example/CNLiveCollectionModule/CNLiveCollectionModule-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/CNLiveCollectionModule/CNLiveCollectionModule-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/CNLiveCollectionModule/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/CNLiveCollectionModule/en.lproj/InfoPlist.strings 0 → 100644
  1 +/* Localized versions of Info.plist keys */
  2 +
... ...
Example/CNLiveCollectionModule/main.m 0 → 100644
  1 +//
  2 +// main.m
  3 +// CNLiveCollectionModule
  4 +//
  5 +// Created by 153993236@qq.com on 12/05/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 'CNLiveCollectionModule_Example' do
  8 + pod 'CNLiveCollectionModule', :path => '../'
  9 +
  10 + target 'CNLiveCollectionModule_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 +// CNLiveCollectionModuleTests.m
  3 +// CNLiveCollectionModuleTests
  4 +//
  5 +// Created by 153993236@qq.com on 12/05/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 +
... ...
LICENSE 0 → 100644
  1 +Copyright (c) 2019 153993236@qq.com <zhangxiaowen@cnlive.com>
  2 +
  3 +Permission is hereby granted, free of charge, to any person obtaining a copy
  4 +of this software and associated documentation files (the "Software"), to deal
  5 +in the Software without restriction, including without limitation the rights
  6 +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7 +copies of the Software, and to permit persons to whom the Software is
  8 +furnished to do so, subject to the following conditions:
  9 +
  10 +The above copyright notice and this permission notice shall be included in
  11 +all copies or substantial portions of the Software.
  12 +
  13 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14 +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18 +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  19 +THE SOFTWARE.
... ...
README.md
1   -CNLiveCollectionModule
2 1 \ No newline at end of file
  2 +# CNLiveCollectionModule
  3 +
  4 +[![CI Status](https://img.shields.io/travis/153993236@qq.com/CNLiveCollectionModule.svg?style=flat)](https://travis-ci.org/153993236@qq.com/CNLiveCollectionModule)
  5 +[![Version](https://img.shields.io/cocoapods/v/CNLiveCollectionModule.svg?style=flat)](https://cocoapods.org/pods/CNLiveCollectionModule)
  6 +[![License](https://img.shields.io/cocoapods/l/CNLiveCollectionModule.svg?style=flat)](https://cocoapods.org/pods/CNLiveCollectionModule)
  7 +[![Platform](https://img.shields.io/cocoapods/p/CNLiveCollectionModule.svg?style=flat)](https://cocoapods.org/pods/CNLiveCollectionModule)
  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 +CNLiveCollectionModule is available through [CocoaPods](https://cocoapods.org). To install
  18 +it, simply add the following line to your Podfile:
  19 +
  20 +```ruby
  21 +pod 'CNLiveCollectionModule'
  22 +```
  23 +
  24 +## Author
  25 +
  26 +153993236@qq.com, zhangxiaowen@cnlive.com
  27 +
  28 +## License
  29 +
  30 +CNLiveCollectionModule 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
... ...