Commit 1a79531eb1b676f64bc85d19e3fc466b5a84e020

Authored by zhangxiaowen
1 parent 5f83e8eb

no message

Showing 84 changed files with 2882 additions and 1 deletions
CNLiveSettingModule.podspec 0 → 100644
  1 +#
  2 +# Be sure to run `pod lib lint CNLiveSettingModule.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 = 'CNLiveSettingModule'
  11 + s.version = '0.0.1'
  12 + s.summary = 'CNLiveSettingModule.'
  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/CNLiveSettingModule'
  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/CNLiveSettingModule.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 + # Module
  34 + s.subspec 'Module' do |ss|
  35 + ss.source_files = 'CNLiveSettingModule/Classes/Module/*.{h,m}'
  36 + ss.dependency 'CNLiveSettingModule/Controller'
  37 + end
  38 +
  39 + # Controller
  40 + s.subspec 'Controller' do |ss|
  41 + ss.source_files = 'CNLiveSettingModule/Classes/Controller/*.{h,m}'
  42 + end
  43 +
  44 + # View
  45 + s.subspec 'View' do |ss|
  46 + ss.source_files = 'CNLiveSettingModule/Classes/View/*.{h,m}'
  47 + end
  48 +
  49 + # Model
  50 + s.subspec 'Model' do |ss|
  51 + ss.source_files = 'CNLiveSettingModule/Classes/Model/*.{h,m}'
  52 + end
  53 +
  54 + s.resource_bundles = {
  55 + 'CNLiveSettingModule' => ['CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets']
  56 + }
  57 +
  58 + # s.public_header_files = 'Pod/Classes/**/*.h'
  59 + # s.frameworks = 'UIKit', 'MapKit'
  60 + # s.dependency 'AFNetworking', '~> 2.3'
  61 +
  62 + # pod
  63 + s.dependency 'CNLiveTripartiteManagement/QMUIKit'
  64 + s.dependency 'CNLiveTripartiteManagement/SDWebImage'
  65 + s.dependency 'CNLiveTripartiteManagement/Masonry'
  66 + s.dependency 'CNLiveTripartiteManagement/MJExtension'
  67 +
  68 + # 服务层
  69 + s.dependency 'CNLiveServices'
  70 +
  71 + # 用户信息本地化
  72 + s.dependency 'CNLiveUserManagement'
  73 +
  74 +end
... ...
CNLiveSettingModule/Assets/.gitkeep 0 → 100644
CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/Contents.json 0 → 100644
  1 +{
  2 + "info" : {
  3 + "version" : 1,
  4 + "author" : "xcode"
  5 + }
  6 +}
0 7 \ No newline at end of file
... ...
CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/code_refresh.imageset/Contents.json 0 → 100644
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "universal",
  5 + "scale" : "1x"
  6 + },
  7 + {
  8 + "idiom" : "universal",
  9 + "filename" : "code_refresh@2x.png",
  10 + "scale" : "2x"
  11 + },
  12 + {
  13 + "idiom" : "universal",
  14 + "filename" : "code_refresh@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
... ...
CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/code_refresh.imageset/code_refresh@2x.png 0 → 100644

1.46 KB

CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/code_refresh.imageset/code_refresh@3x.png 0 → 100644

2.57 KB

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

11.1 KB

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

10.7 KB

CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_all_front.imageset/Contents.json 0 → 100644
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "universal",
  5 + "scale" : "1x"
  6 + },
  7 + {
  8 + "idiom" : "universal",
  9 + "filename" : "mine_all_front@2x.png",
  10 + "scale" : "2x"
  11 + },
  12 + {
  13 + "idiom" : "universal",
  14 + "filename" : "mine_all_front@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
... ...
CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_all_front.imageset/mine_all_front@2x.png 0 → 100644

266 Bytes

CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_all_front.imageset/mine_all_front@3x.png 0 → 100644

615 Bytes

CNLiveSettingModule/Assets/CNLiveSettingModule.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
... ...
CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_back_black_b.imageset/mine_back_black_b@2x.png 0 → 100644

1.49 KB

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

1.79 KB

CNLiveSettingModule/Assets/CNLiveSettingModule.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
... ...
CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_back_white_b.imageset/mine_back_white_b@2x.png 0 → 100644

2.03 KB

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

2.28 KB

CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_bg.imageset/Contents.json 0 → 100644
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "universal",
  5 + "scale" : "1x"
  6 + },
  7 + {
  8 + "idiom" : "universal",
  9 + "filename" : "mine_bg@2x.png",
  10 + "scale" : "2x"
  11 + },
  12 + {
  13 + "idiom" : "universal",
  14 + "filename" : "mine_bg@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
... ...
CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_bg.imageset/mine_bg@2x.png 0 → 100644

25.9 KB

CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_bg.imageset/mine_bg@3x.png 0 → 100644

50.7 KB

CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_code.imageset/Contents.json 0 → 100644
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "universal",
  5 + "scale" : "1x"
  6 + },
  7 + {
  8 + "idiom" : "universal",
  9 + "filename" : "mine_code@2x.png",
  10 + "scale" : "2x"
  11 + },
  12 + {
  13 + "idiom" : "universal",
  14 + "filename" : "mine_code@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
... ...
CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_code.imageset/mine_code@2x.png 0 → 100644

1.06 KB

CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_code.imageset/mine_code@3x.png 0 → 100644

2.03 KB

CNLiveSettingModule/Assets/CNLiveSettingModule.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
... ...
CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_code_more.imageset/mine_code_more@2x.png 0 → 100644

205 Bytes

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

962 Bytes

CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_info_front.imageset/Contents.json 0 → 100644
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "universal",
  5 + "scale" : "1x"
  6 + },
  7 + {
  8 + "idiom" : "universal",
  9 + "filename" : "mine_info_front@2x.png",
  10 + "scale" : "2x"
  11 + },
  12 + {
  13 + "idiom" : "universal",
  14 + "filename" : "mine_info_front@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
... ...
CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_info_front.imageset/mine_info_front@2x.png 0 → 100644

1.24 KB

CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_info_front.imageset/mine_info_front@3x.png 0 → 100644

1.51 KB

CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_info_qrcode.imageset/Contents.json 0 → 100644
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "universal",
  5 + "scale" : "1x"
  6 + },
  7 + {
  8 + "idiom" : "universal",
  9 + "filename" : "mine_info_qrcode@2x.png",
  10 + "scale" : "2x"
  11 + },
  12 + {
  13 + "idiom" : "universal",
  14 + "filename" : "mine_info_qrcode@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
... ...
CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_info_qrcode.imageset/mine_info_qrcode@2x.png 0 → 100644

1.64 KB

CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_info_qrcode.imageset/mine_info_qrcode@3x.png 0 → 100644

1.73 KB

CNLiveSettingModule/Assets/CNLiveSettingModule.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
... ...
CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_info_set.imageset/mine_info_set@2x.png 0 → 100644

1.15 KB

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

1.3 KB

CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_location.imageset/Contents.json 0 → 100644
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "universal",
  5 + "scale" : "1x"
  6 + },
  7 + {
  8 + "idiom" : "universal",
  9 + "filename" : "mine_location@2x.png",
  10 + "scale" : "2x"
  11 + },
  12 + {
  13 + "idiom" : "universal",
  14 + "filename" : "mine_location@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
... ...
CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_location.imageset/mine_location@2x.png 0 → 100644

767 Bytes

CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_location.imageset/mine_location@3x.png 0 → 100644

1.47 KB

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

68.8 KB

CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_set.imageset/Contents.json 0 → 100644
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "universal",
  5 + "scale" : "1x"
  6 + },
  7 + {
  8 + "idiom" : "universal",
  9 + "filename" : "mine_set@2x.png",
  10 + "scale" : "2x"
  11 + },
  12 + {
  13 + "idiom" : "universal",
  14 + "filename" : "mine_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
... ...
CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_set.imageset/mine_set@2x.png 0 → 100644

2.83 KB

CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/mine_set.imageset/mine_set@3x.png 0 → 100644

5.77 KB

CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/qr_code_icon.imageset/Contents.json 0 → 100644
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "universal",
  5 + "scale" : "1x"
  6 + },
  7 + {
  8 + "idiom" : "universal",
  9 + "filename" : "qr_code_icon@2x.png",
  10 + "scale" : "2x"
  11 + },
  12 + {
  13 + "idiom" : "universal",
  14 + "filename" : "qr_code_icon@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
... ...
CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/qr_code_icon.imageset/qr_code_icon@2x.png 0 → 100644

7.47 KB

CNLiveSettingModule/Assets/CNLiveSettingModule.xcassets/qr_code_icon.imageset/qr_code_icon@3x.png 0 → 100644

11.1 KB

CNLiveSettingModule/Classes/.gitkeep 0 → 100644
CNLiveSettingModule/Classes/Controller/CNLiveSettingController.h 0 → 100644
  1 +//
  2 +// CNLiveSettingController.h
  3 +// CNLiveSettingModule
  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 +
  15 +NS_ASSUME_NONNULL_BEGIN
  16 +
  17 +@interface CNLiveSettingController : UIViewController
  18 +
  19 +@end
  20 +
  21 +NS_ASSUME_NONNULL_END
... ...
CNLiveSettingModule/Classes/Controller/CNLiveSettingController.m 0 → 100644
  1 +//
  2 +// CNLiveSettingController.m
  3 +// CNLiveSettingModule
  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 "CNLiveSettingController.h"
  10 +#import "MJExtension.h"
  11 +#import <SDWebImage/SDWebImage.h>
  12 +#import "QMUIKit.h"
  13 +
  14 +#import "CNLiveSettingModel.h"
  15 +#import "CNLiveSettingCell.h"
  16 +#import "CNLiveServices.h"
  17 +#import "CNLiveSettingNavigationBar.h"
  18 +
  19 +@interface CNLiveSettingController ()
  20 +<UITableViewDelegate, UITableViewDataSource, CNLiveSettingNavigationBarDelegate>
  21 +@property (nonatomic, strong) CNLiveSettingNavigationBar *navigationBar;
  22 +@property (nonatomic, strong) UITableView *tableView;
  23 +@property (nonatomic, strong) UIButton *logout;
  24 +@property (nonatomic, strong) NSMutableArray *data;
  25 +
  26 +@end
  27 +
  28 +@implementation CNLiveSettingController
  29 +#pragma mark - 加载数据
  30 +- (void)loadData {
  31 + NSArray *data = @[
  32 + @{
  33 + @"style":@"2",
  34 + @"title":@"更换手机号",
  35 + @"content":@"User_Tel",
  36 + @"height":@"60",
  37 + @"lineHeight":@"10"
  38 + },
  39 + @{
  40 + @"style":@"2",
  41 + @"title":@"绑定管理",
  42 + @"content":@"",
  43 + @"height":@"60",
  44 + @"lineHeight":@"10"
  45 + },
  46 + @{
  47 + @"style":@"2",
  48 + @"title":@"帮助手册",
  49 + @"content":@"",
  50 + @"height":@"60",
  51 + @"lineHeight":@"10"
  52 + },
  53 + @{
  54 + @"style":@"1",
  55 + @"title":@"使用手册",
  56 + @"content":@"",
  57 + @"height":@"51",
  58 + @"lineHeight":@"1"
  59 + },
  60 + @{
  61 + @"style":@"1",
  62 + @"title":@"字体大小",
  63 + @"height":@"51",
  64 + @"lineHeight":@"1"
  65 + },
  66 + @{
  67 + @"style":@"1",
  68 + @"title":@"隐私",
  69 + @"height":@"51",
  70 + @"lineHeight":@"1"
  71 + },
  72 + @{
  73 + @"style":@"3",
  74 + @"title":@"音量开关",
  75 + @"height":@"51",
  76 + @"lineHeight":@"1"
  77 + },
  78 + @{
  79 + @"style":@"2",
  80 + @"title":@"清除缓存",
  81 + @"content":@"30k",
  82 + @"height":@"60",
  83 + @"lineHeight":@"10"
  84 + },
  85 + @{
  86 + @"style":@"1",
  87 + @"title":@"关于我们",
  88 + @"height":@"51",
  89 + @"lineHeight":@"1"
  90 + },
  91 + @{
  92 + @"style":@"1",
  93 + @"title":@"注销账号",
  94 + @"height":@"51",
  95 + @"lineHeight":@"1"
  96 + }
  97 +
  98 + ];
  99 + for(NSDictionary *dic in data){
  100 + [self.data addObject:[CNLiveSettingModel mj_objectWithKeyValues:dic]];
  101 + }
  102 + [self getSDCacheSize];
  103 + [self.tableView reloadData];
  104 +
  105 +}
  106 +- (void)getSDCacheSize {
  107 + __weak typeof(self) weakSelf = self;
  108 + [[SDImageCache sharedImageCache] calculateSizeWithCompletionBlock:^(NSUInteger fileCount, NSUInteger totalSize) {
  109 + NSString *cacheString = @"";
  110 + if (totalSize/(1024.0*1024.0) >= 1.0) {
  111 + cacheString = [NSString stringWithFormat:@"%.1fMB",totalSize/(1024.0*1024)];
  112 + } else {
  113 + cacheString = [NSString stringWithFormat:@"%.1fKB",totalSize/1024.0];
  114 + }
  115 + for (CNLiveSettingModel *model in self.data) {
  116 + if([model.title isEqualToString:@"清除缓存"]){
  117 + model.content = cacheString;
  118 + }
  119 + }
  120 + [weakSelf.tableView reloadData];
  121 +
  122 + }];
  123 +}
  124 +
  125 +#pragma mark - 生命周期
  126 +- (void)viewWillAppear:(BOOL)animated{
  127 + [super viewWillAppear:animated];
  128 + self.navigationController.navigationBarHidden = YES;
  129 +}
  130 +
  131 +- (void)viewDidLoad {
  132 + [super viewDidLoad];
  133 + self.view.backgroundColor = [UIColor whiteColor];
  134 + if (@available(iOS 11, *)) {
  135 + self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
  136 + }
  137 + else {
  138 + self.automaticallyAdjustsScrollViewInsets = NO;
  139 + }
  140 +
  141 + [self createSubViews];
  142 + [self loadData];
  143 +
  144 +}
  145 +
  146 +- (void)dealloc {
  147 +
  148 +
  149 +}
  150 +
  151 +- (void)createSubViews {
  152 + [self.view addSubview:self.navigationBar];
  153 + [self.view addSubview:self.tableView];
  154 + [self.view addSubview:self.logout];
  155 +
  156 +}
  157 +#pragma mark - UITableViewDelegate
  158 +- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
  159 + CNLiveSettingModel *model = self.data[indexPath.row];
  160 + return model.height;
  161 +}
  162 +
  163 +#pragma mark - UITableViewDataSource
  164 +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
  165 + return self.data.count;
  166 +}
  167 +
  168 +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  169 + CNLiveSettingCell *cell = [tableView dequeueReusableCellWithIdentifier:kCNLiveSettingCell];
  170 + cell.selectionStyle = UITableViewCellSelectionStyleNone;
  171 + CNLiveSettingModel *model = self.data[indexPath.row];
  172 + cell.model = model;
  173 + return cell;
  174 +}
  175 +
  176 +- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
  177 + if(indexPath.row == 0){ // 更换手机号
  178 +
  179 + }
  180 + else if(indexPath.row == 1){ //绑定管理
  181 +
  182 + }
  183 + else if(indexPath.row == 2){ //帮助手册
  184 +
  185 + }
  186 + else if(indexPath.row == 3){ // 使用手册
  187 +
  188 + }
  189 + else if(indexPath.row == 4){ // 字体大小
  190 +
  191 + }
  192 + else if(indexPath.row == 5){ // 隐私
  193 +
  194 + }
  195 + else if(indexPath.row == 6){ //音量开关
  196 +
  197 + }
  198 + else if(indexPath.row == 7){ // 清除缓存
  199 +// XWAlertController *alertController = [XWAlertController alertControllerWithTitle:@"确定清除本地缓存吗?" message:@"" preferredStyle:XWAlertControllerStyleAlert];
  200 +// alertController.needDialogBlur = NO;
  201 +//
  202 +// __weak typeof(self) weakSelf = self;
  203 +// XWAlertAction *action1 = [XWAlertAction actionWithTitle:@"取消" style:XWAlertActionStyleCancel handler:^(XWAlertAction * _Nonnull action) {
  204 +// }];
  205 +// XWAlertAction *action2 = [XWAlertAction actionWithTitle:@"确定" style:XWAlertActionStyleDefault handler:^(XWAlertAction * _Nonnull action) {
  206 +// __strong typeof(weakSelf) strongSelf = weakSelf;
  207 +// if(!strongSelf) return ;
  208 +// [strongSelf cleanLocalCache];
  209 +// }];
  210 +// action2.titleColor = HexColor(0x23d41e);
  211 +// [alertController addAction:action1];
  212 +// [alertController addAction:action2];
  213 +// [self presentViewController:alertController animated:YES completion:nil];
  214 + }else{
  215 +
  216 + }
  217 +}
  218 +
  219 +#pragma mark - 懒加载
  220 +- (NSMutableArray *)data {
  221 + if (!_data) {
  222 + _data = [NSMutableArray array];
  223 +
  224 + }
  225 + return _data;
  226 +}
  227 +#pragma mark - 懒加载
  228 +- (CNLiveSettingNavigationBar *)navigationBar {
  229 + if (!_navigationBar) {
  230 + _navigationBar = [[CNLiveSettingNavigationBar alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, NavigationContentTop)];
  231 + _navigationBar.backgroundColor = [UIColor whiteColor];
  232 + _navigationBar.delegate = self;
  233 + _navigationBar.title.text = @"设置";
  234 + _navigationBar.right = nil;
  235 + }
  236 + return _navigationBar;
  237 +}
  238 +
  239 +- (UITableView *)tableView{
  240 + if(!_tableView){
  241 + _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, NavigationContentTop, SCREEN_WIDTH, SCREEN_HEIGHT-NavigationContentTop-50) style:UITableViewStylePlain];
  242 + _tableView.delegate = self;
  243 + _tableView.dataSource = self;
  244 + _tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
  245 + _tableView.backgroundColor = [UIColor colorWithRed:235/255.0 green:235/255.0 blue:235/255.0 alpha:1.0];
  246 + _tableView.estimatedRowHeight = 0;
  247 + _tableView.estimatedSectionHeaderHeight = 0;
  248 + _tableView.estimatedSectionFooterHeight = 0;
  249 + [_tableView registerClass:[CNLiveSettingCell class] forCellReuseIdentifier:kCNLiveSettingCell];
  250 +
  251 + }
  252 + return _tableView;
  253 +}
  254 +- (UIButton *)logout{
  255 + if(!_logout){
  256 + _logout = [UIButton buttonWithType:UIButtonTypeCustom];
  257 + _logout.frame = CGRectMake(0, SCREEN_HEIGHT-NavigationContentTop, SCREEN_WIDTH, 50);
  258 + _logout.backgroundColor = [UIColor whiteColor];
  259 + _logout.titleLabel.font = [UIFont boldSystemFontOfSize:17];
  260 + [_logout setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
  261 + [_logout setTitle:@"退出登录" forState:UIControlStateNormal];
  262 + _logout.adjustsImageWhenHighlighted = NO;
  263 + [_logout addTarget:self action:@selector(logoutDidClicked:) forControlEvents:UIControlEventTouchUpInside];
  264 + }
  265 + return _logout;
  266 +}
  267 +#pragma mark - 响应方法
  268 +- (void)goBack {
  269 + if (self.presentingViewController != nil) {
  270 + [self dismissViewControllerAnimated:YES completion:nil];
  271 +
  272 + }
  273 + else {
  274 + [self.navigationController popViewControllerAnimated:YES];
  275 + }
  276 +}
  277 +- (void)logoutDidClicked:(UIButton *)btn{
  278 + [UIApplication sharedApplication].delegate.window.rootViewController = nil;
  279 + [self cleanLocalCache];
  280 +// id<XWLoginServiceProtocol> login = [[BeeHive shareInstance] createService:@protocol(XWLoginServiceProtocol)];
  281 +// XWBaseNavigationController *nav = [[XWBaseNavigationController alloc] initWithRootViewController:[login getLoginViewController]];
  282 +// [UIApplication sharedApplication].delegate.window.rootViewController = nav;
  283 +}
  284 +
  285 +#pragma mark - 私有方法
  286 +// 清除本地缓存
  287 +- (void)cleanLocalCache{
  288 +// [XWUserManager removeUserInfo];
  289 + [[SDImageCache sharedImageCache] clearMemory];
  290 + [[SDImageCache sharedImageCache] clearDiskOnCompletion:^{
  291 + [self getSDCacheSize];
  292 +
  293 + }];
  294 +}
  295 +
  296 +#pragma mark - 公共方法
  297 +// 清除本地缓存
  298 ++ (void)cleanLocalCache{
  299 +// [XWUserManager removeUserInfo];
  300 + [[SDImageCache sharedImageCache] clearMemory];
  301 + [[SDImageCache sharedImageCache] clearDiskOnCompletion:^{
  302 +
  303 + }];
  304 +}
  305 +
  306 +/**
  307 + * 创建图片
  308 + *
  309 + * @param imageName 图片名字
  310 + * @param bundleName 图片所在的bundle名字
  311 + * @param targetClass 类和bundle的同级目录
  312 + * @return 返回UIImage
  313 + */
  314 +- (UIImage *)xw_getImageName:(NSString *)imageName bundleName:(NSString *)bundleName targetClass:(Class)targetClass{
  315 + NSBundle *bundle = [NSBundle bundleForClass:targetClass];
  316 + NSURL *url = [bundle URLForResource:bundleName withExtension:@"bundle"];
  317 + NSBundle *targetBundle = [NSBundle bundleWithURL:url];
  318 + UIImage *image = [UIImage imageNamed:imageName inBundle:targetBundle compatibleWithTraitCollection:nil];
  319 + return image?image:[UIImage imageNamed:imageName inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:nil];
  320 +}
  321 +
  322 +@end
... ...
CNLiveSettingModule/Classes/Model/CNLiveSettingModel.h 0 → 100644
  1 +//
  2 +// CNLiveSettingModel.h
  3 +// CNLiveSettingModule
  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, CNLiveSettingModelType) {
  13 + CNLiveSettingModelTypeDefault = 0,
  14 + CNLiveSettingModelTypeText = 1,
  15 + CNLiveSettingModelTypeSwitch = 2,
  16 +};
  17 +
  18 +@interface CNLiveSettingModel : NSObject
  19 +@property (nonatomic, copy) NSString *title;
  20 +@property (nonatomic, copy) NSString *content;
  21 +@property (nonatomic, copy) NSString *style;
  22 +
  23 +@property (nonatomic, assign) CNLiveSettingModelType type;
  24 +@property (nonatomic, assign) CGFloat height;
  25 +@property (nonatomic, assign) CGFloat lineHeight;
  26 +
  27 +@end
  28 +
  29 +NS_ASSUME_NONNULL_END
... ...
CNLiveSettingModule/Classes/Model/CNLiveSettingModel.m 0 → 100644
  1 +//
  2 +// CNLiveSettingModel.m
  3 +// CNLiveSettingModule
  4 +//
  5 +// Created by 153993236@qq.com on 11/12/2019.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveSettingModel.h"
  10 +
  11 +@implementation CNLiveSettingModel
  12 +
  13 +- (CNLiveSettingModelType)type{
  14 + if([self.style isEqualToString:@"1"]){
  15 + return CNLiveSettingModelTypeDefault;
  16 + }
  17 + else if([self.style isEqualToString:@"2"]){
  18 + return CNLiveSettingModelTypeText;
  19 +
  20 + }
  21 + else if([self.style isEqualToString:@"3"]){
  22 + return CNLiveSettingModelTypeSwitch;
  23 +
  24 + }
  25 + return CNLiveSettingModelTypeDefault;
  26 +}
  27 +
  28 +@end
... ...
CNLiveSettingModule/Classes/Module/CNLiveSettingModule.h 0 → 100644
  1 +//
  2 +// CNLiveSettingModule.h
  3 +// CNLiveSettingModule
  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 CNLiveSettingModule : NSObject
  14 +
  15 +@end
  16 +
  17 +NS_ASSUME_NONNULL_END
... ...
CNLiveSettingModule/Classes/Module/CNLiveSettingModule.m 0 → 100644
  1 +//
  2 +// CNLiveSettingModule.m
  3 +// CNLiveSettingModule
  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 "CNLiveSettingModule.h"
  10 +#import "CNLiveServices.h"
  11 +
  12 +@BeeHiveMod(CNLiveSettingModule)
  13 +@interface CNLiveSettingModule()<BHModuleProtocol>
  14 +
  15 +@end
  16 +
  17 +@implementation CNLiveSettingModule
  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
... ...
CNLiveSettingModule/Classes/Module/CNLiveSettingService.h 0 → 100644
  1 +//
  2 +// CNLiveSettingService.h
  3 +// CNLiveSettingModule
  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 CNLiveSettingService : NSObject
  14 +
  15 +@end
  16 +
  17 +NS_ASSUME_NONNULL_END
... ...
CNLiveSettingModule/Classes/Module/CNLiveSettingService.m 0 → 100644
  1 +//
  2 +// CNLiveSettingService.m
  3 +// CNLiveSettingModule
  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 "CNLiveSettingService.h"
  10 +#import "CNLiveServices.h"
  11 +#import "CNLiveSettingController.h"
  12 +
  13 +@BeeHiveService(CNLiveMineServiceProtocol,CNLiveSettingService)
  14 +@interface CNLiveSettingService ()<CNLiveMineServiceProtocol>
  15 +
  16 +@end
  17 +
  18 +@implementation CNLiveSettingService
  19 +
  20 +// 我的
  21 +- (UIViewController *)getMineViewController {
  22 + return [CNLiveSettingController new];
  23 +}
  24 +
  25 +- (void)pushToMineViewController {
  26 + CNLiveSettingController *vc = [[CNLiveSettingController alloc]init];
  27 +// [CNLivePageJumpManager pushViewController:vc];
  28 +}
  29 +
  30 +
  31 +
  32 +
  33 +// 积分
  34 +// 目击者
  35 +// 订单
  36 +// 余额
  37 +// 我的收藏
  38 +// 设置
  39 +
  40 +
  41 +@end
... ...
CNLiveSettingModule/Classes/View/CNLiveSettingCell.h 0 → 100644
  1 +//
  2 +// CNLiveSettingCell.h
  3 +// CNLiveSettingModule
  4 +//
  5 +// Created by 153993236@qq.com on 11/12/2019.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import <UIKit/UIKit.h>
  10 +
  11 +NS_ASSUME_NONNULL_BEGIN
  12 +@class CNLiveSettingModel;
  13 +static NSString * const kCNLiveSettingCell = @"CNLiveSettingCell";
  14 +
  15 +@interface CNLiveSettingCell : UITableViewCell
  16 +
  17 +@property (nonatomic, strong) CNLiveSettingModel *model;
  18 +
  19 +@end
  20 +
  21 +NS_ASSUME_NONNULL_END
... ...
CNLiveSettingModule/Classes/View/CNLiveSettingCell.m 0 → 100644
  1 +//
  2 +// CNLiveSettingCell.m
  3 +// CNLiveSettingModule
  4 +//
  5 +// Created by CNLive-zxw on 2019/9/6.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveSettingCell.h"
  10 +#import <Masonry/Masonry.h>
  11 +#import "CNLiveSettingModel.h"
  12 +
  13 +@interface CNLiveSettingCell()
  14 +@property (nonatomic, strong) UIView *line;
  15 +@property (nonatomic, strong) UILabel *title;
  16 +@property (nonatomic, strong) UILabel *content;
  17 +@property (nonatomic, strong) UIImageView *front;
  18 +@property (nonatomic, strong) UISwitch *switchOn;
  19 +
  20 +@end
  21 +
  22 +@implementation CNLiveSettingCell
  23 +static const NSInteger margin = 12;
  24 +
  25 +- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
  26 + self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  27 + if (self) {
  28 + self.contentView.backgroundColor = [UIColor whiteColor];
  29 +
  30 + [self.contentView addSubview:self.line];
  31 + [self.contentView addSubview:self.title];
  32 + [self.contentView addSubview:self.content];
  33 + [self.contentView addSubview:self.front];
  34 + [self.contentView addSubview:self.switchOn];
  35 +
  36 + }
  37 + return self;
  38 +}
  39 +- (void)setModel:(CNLiveSettingModel *)model{
  40 + _model = model;
  41 + _title.text = model.title;
  42 + _content.text = model.content;
  43 + [self xw_layoutSubviews];
  44 +}
  45 +
  46 +- (void)xw_layoutSubviews{
  47 + [_line mas_updateConstraints:^(MASConstraintMaker *make) {
  48 + make.left.equalTo(self.contentView.mas_left).with.offset(0);
  49 + make.right.equalTo(self.contentView.mas_right).with.offset(0);
  50 + make.top.equalTo(self.contentView.mas_top).with.offset(0);
  51 + make.height.offset(self.model.lineHeight);
  52 +
  53 + }];
  54 +
  55 + [_title mas_updateConstraints:^(MASConstraintMaker *make) {
  56 + make.left.equalTo(self.line.mas_left).with.offset(1.5*margin);
  57 + make.top.equalTo(self.line.mas_bottom).with.offset(0);
  58 + make.height.offset(self.model.height-self.model.lineHeight);
  59 +
  60 + }];
  61 +
  62 + [_front mas_updateConstraints:^(MASConstraintMaker *make) {
  63 + make.right.equalTo(self.line.mas_right).with.offset(-1.5*margin);
  64 + make.top.equalTo(self.title.mas_top).with.offset(0);
  65 + make.width.with.offset(margin);
  66 + make.height.equalTo(self.title.mas_height);
  67 +
  68 + }];
  69 +
  70 + switch (self.model.type) {
  71 + case CNLiveSettingModelTypeText:
  72 + {
  73 + _front.hidden = NO;
  74 + _content.hidden = NO;
  75 + _switchOn.hidden = YES;
  76 + [_content mas_updateConstraints:^(MASConstraintMaker *make) {
  77 + make.top.equalTo(self.title.mas_top).with.offset(0);
  78 + make.left.equalTo(self.title.mas_right).with.offset(0);
  79 + make.right.equalTo(self.front.mas_left).with.offset(-margin);
  80 + make.height.equalTo(self.title.mas_height);
  81 +
  82 + }];
  83 + }
  84 + break;
  85 + case CNLiveSettingModelTypeSwitch:
  86 + {
  87 + _front.hidden = YES;
  88 + _content.hidden = YES;
  89 + _switchOn.hidden = NO;
  90 + [_switchOn mas_updateConstraints:^(MASConstraintMaker *make) {
  91 +// UISwithch的大小无效.默认大小 51.0f 31.0f)
  92 + make.top.equalTo(self.line.mas_bottom).with.offset(margin);
  93 + make.right.equalTo(self.line.mas_right).with.offset(-1.5*margin);
  94 +
  95 + }];
  96 +
  97 + }
  98 + break;
  99 +
  100 + default:
  101 + {
  102 + _front.hidden = NO;
  103 + _content.hidden = YES;
  104 + _switchOn.hidden = YES;
  105 +
  106 + }
  107 + break;
  108 + }
  109 +
  110 +}
  111 +- (void)awakeFromNib {
  112 + [super awakeFromNib];
  113 + // Initialization code
  114 +}
  115 +
  116 +- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  117 + [super setSelected:selected animated:animated];
  118 +
  119 + // Configure the view for the selected state
  120 +}
  121 +
  122 +#pragma mark - 响应方法
  123 +- (void)switchChanged:(UISwitch *)sw{
  124 +
  125 +}
  126 +
  127 +#pragma mark - 懒加载
  128 +- (UIView *)line {
  129 + if (!_line) {
  130 + _line = [[UIView alloc] init];
  131 + _line.backgroundColor = [UIColor colorWithRed:235/255.0 green:235/255.0 blue:235/255.0 alpha:1.0];
  132 + }
  133 + return _line;
  134 +}
  135 +
  136 +- (UILabel *)title {
  137 + if (!_title) {
  138 + _title = [[UILabel alloc] init];
  139 + _title.numberOfLines = 1;
  140 + _title.textColor = [UIColor colorWithRed:51/255.0 green:51/255.0 blue:51/255.0 alpha:1.0];
  141 + _title.font = [UIFont systemFontOfSize:16];
  142 + }
  143 + return _title;
  144 +}
  145 +
  146 +- (UILabel *)content {
  147 + if (!_content) {
  148 + _content = [[UILabel alloc] init];
  149 + _content.numberOfLines = 1;
  150 + _content.lineBreakMode = NSLineBreakByTruncatingTail;
  151 + _content.textColor = [UIColor colorWithRed:102/255.0 green:102/255.0 blue:102/255.0 alpha:1.0];
  152 + _content.font = [UIFont systemFontOfSize:14];
  153 + }
  154 + return _content;
  155 +}
  156 +
  157 +- (UIImageView *)front {
  158 + if (!_front) {
  159 + _front = [[UIImageView alloc] init];
  160 + UIImage *xw_image = [self xw_getImageName:@"mine_info_front" bundleName:@"CNLiveSettingModule" targetClass:[CNLiveSettingCell class]];
  161 + _front.image = xw_image;
  162 + _front.contentMode = UIViewContentModeCenter;
  163 +
  164 + }
  165 + return _front;
  166 +}
  167 +
  168 +- (UISwitch *)switchOn{
  169 + if(!_switchOn){
  170 + _switchOn = [[UISwitch alloc] init];
  171 + [_switchOn addTarget:self action:@selector(switchChanged:) forControlEvents:(UIControlEventValueChanged)];
  172 + }
  173 + return _switchOn;
  174 +}
  175 +
  176 +/**
  177 + * 创建图片
  178 + *
  179 + * @param imageName 图片名字
  180 + * @param bundleName 图片所在的bundle名字
  181 + * @param targetClass 类和bundle的同级目录
  182 + * @return 返回UIImage
  183 + */
  184 +- (UIImage *)xw_getImageName:(NSString *)imageName bundleName:(NSString *)bundleName targetClass:(Class)targetClass{
  185 + NSBundle *bundle = [NSBundle bundleForClass:targetClass];
  186 + NSURL *url = [bundle URLForResource:bundleName withExtension:@"bundle"];
  187 + NSBundle *targetBundle = [NSBundle bundleWithURL:url];
  188 + UIImage *image = [UIImage imageNamed:imageName inBundle:targetBundle compatibleWithTraitCollection:nil];
  189 + return image?image:[UIImage imageNamed:imageName inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:nil];
  190 +
  191 +}
  192 +
  193 +@end
  194 +
... ...
CNLiveSettingModule/Classes/View/CNLiveSettingHeaderView.h 0 → 100644
  1 +//
  2 +// CNLiveSettingHeaderView.h
  3 +// CNLiveSettingModule
  4 +//
  5 +// Created by 153993236@qq.com on 11/12/2019.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import <UIKit/UIKit.h>
  10 +
  11 +NS_ASSUME_NONNULL_BEGIN
  12 +typedef NS_ENUM(NSInteger, CNLiveMineHeaderViewType) {
  13 + CNLiveMineHeaderViewTypeUerInfo = 0,
  14 + CNLiveMineHeaderViewTypeCode = 1,
  15 + CNLiveMineHeaderViewTypeWintess = 2,
  16 + CNLiveMineHeaderViewTypeSign = 3
  17 +
  18 +};
  19 +@class CNLiveSettingHeaderView;
  20 +
  21 +@protocol CNLiveSettingHeaderViewDelegate <NSObject>
  22 +@optional
  23 +- (void)headerView:(CNLiveSettingHeaderView *)headerView pushToController:(CNLiveMineHeaderViewType)type;
  24 +
  25 +@end
  26 +@interface CNLiveSettingHeaderView : UIView
  27 +@property (nonatomic, weak) id<CNLiveSettingHeaderViewDelegate> delegate;
  28 +- (void)layoutSubviews;
  29 +
  30 +@end
  31 +
  32 +NS_ASSUME_NONNULL_END
... ...
CNLiveSettingModule/Classes/View/CNLiveSettingHeaderView.m 0 → 100644
  1 +//
  2 +// CNLiveSettingHeaderView.m
  3 +// CNLiveSettingModule
  4 +//
  5 +// Created by 153993236@qq.com on 11/12/2019.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveSettingHeaderView.h"
  10 +#import <Masonry/Masonry.h>
  11 +#import <SDWebImage/SDWebImage.h>
  12 +#import "QMUIKit.h"
  13 +
  14 +@interface CNLiveSettingHeaderView ()
  15 +@property (nonatomic, strong) UIImageView *bgView;
  16 +@property (nonatomic, strong) UIButton *witness;
  17 +
  18 +@property (nonatomic, strong) UIImageView *header;
  19 +@property (nonatomic, strong) UILabel *name;
  20 +@property (nonatomic, strong) UILabel *certification;
  21 +@property (nonatomic, strong) UILabel *address;
  22 +@property (nonatomic, strong) UIButton *sign;
  23 +
  24 +@end
  25 +
  26 +@implementation CNLiveSettingHeaderView
  27 +static const NSInteger margin = 20;
  28 +
  29 +- (instancetype)initWithFrame:(CGRect)frame{
  30 + self = [super initWithFrame:frame];
  31 + if(self){
  32 + self.userInteractionEnabled = YES;
  33 + self.backgroundColor = [UIColor colorWithRed:244.0/255.0 green:244.0/255.0 blue:244.0/255.0 alpha:1.0];
  34 +// [XWUserInfoNotification addUserInfoUpdateObserver:self selector:@selector(userInfoUpdateNotification:)];
  35 + [self createSubViews];
  36 + }
  37 + return self;
  38 +}
  39 +// 实现方法
  40 +- (void)userInfoUpdateNotification:(NSNotification *)noti{
  41 + //使用userInfo处理消息
  42 +// NSDictionary *dic = [noti userInfo];
  43 +// XWUserInfoDataType type = [[dic objectForKey:@"type"] integerValue];
  44 +// if(type == XWUserInfoDataTypeHead){
  45 +// UIImage *info = [dic objectForKey:@"info"];
  46 +// _header.image = info;
  47 +//
  48 +// }else if(type == XWUserInfoDataTypeNickname){
  49 +// NSString *info = [dic objectForKey:@"info"];
  50 +// _name.attributedText = [self createAttributedImageName:@"mine_code" string:info isFront:NO];
  51 +//
  52 +// }else if(type == XWUserInfoDataTypeAddress){
  53 +// NSString *info = [dic objectForKey:@"info"];
  54 +// _address.attributedText = [self createAttributedImageName:@"mine_location" string:info isFront:YES];
  55 +//
  56 +// }
  57 +}
  58 +
  59 +- (void)dealloc {
  60 + NSLog(@"CNLiveMineHeaderView -- dealloc");
  61 +// [XWUserInfoNotification removeObserver:self];
  62 +
  63 +}
  64 +
  65 +- (void)createSubViews {
  66 + [self addSubview:self.bgView];
  67 + [self addSubview:self.witness];
  68 +
  69 + [self addSubview:self.header];
  70 + [self addSubview:self.name];
  71 + [self addSubview:self.certification];
  72 + [self addSubview:self.address];
  73 + [self addSubview:self.sign];
  74 +
  75 +}
  76 +
  77 +- (void)layoutSubviews{
  78 + [super layoutSubviews];
  79 + [_witness mas_remakeConstraints:^(MASConstraintMaker *make) {
  80 + make.left.equalTo(self.mas_left).with.offset(1.5*margin);
  81 + make.right.equalTo(self.mas_right).with.offset(-1.5*margin);
  82 + make.width.height.offset(60);
  83 + make.bottom.equalTo(self.mas_bottom).with.offset(-0.5*margin);
  84 +
  85 + }];
  86 +
  87 + [_bgView mas_remakeConstraints:^(MASConstraintMaker *make) {
  88 + make.left.equalTo(self.mas_left).with.offset(0);
  89 + make.right.equalTo(self.mas_right).with.offset(-0);
  90 + make.top.equalTo(self.mas_top).with.offset(0);
  91 + make.bottom.equalTo(self.witness.mas_centerY).with.offset(0.5*margin);
  92 +
  93 + }];
  94 +
  95 + [_header mas_remakeConstraints:^(MASConstraintMaker *make) {
  96 + make.left.equalTo(self.mas_left).with.offset(margin);
  97 + make.centerY.equalTo(self.bgView.mas_centerY).with.offset(0);
  98 + make.width.height.offset(60);
  99 +
  100 + }];
  101 +
  102 + [_certification mas_remakeConstraints:^(MASConstraintMaker *make) {
  103 + make.centerY.equalTo(self.header.mas_centerY);
  104 + make.left.equalTo(self.header.mas_right).with.offset(margin/2.0);
  105 + make.height.offset(35);
  106 +
  107 + }];
  108 +
  109 + [_name mas_remakeConstraints:^(MASConstraintMaker *make) {
  110 + make.bottom.equalTo(self.certification.mas_top);
  111 + make.left.equalTo(self.certification.mas_left);
  112 + make.right.equalTo(self.bgView.mas_right).with.offset(-margin);
  113 + make.height.equalTo(self.certification.mas_height);
  114 +
  115 + }];
  116 +
  117 + [_address mas_remakeConstraints:^(MASConstraintMaker *make) {
  118 + make.top.equalTo(self.certification.mas_bottom);
  119 + make.left.equalTo(self.name.mas_left);
  120 + make.right.equalTo(self.name.mas_right);
  121 + make.height.equalTo(self.name.mas_height);
  122 +
  123 + }];
  124 +
  125 + [_sign mas_remakeConstraints:^(MASConstraintMaker *make) {
  126 + make.right.equalTo(self.mas_right).with.offset(0);
  127 + make.centerY.equalTo(self.header.mas_centerY).with.offset(0);
  128 + make.width.mas_equalTo(105);
  129 + make.height.mas_equalTo(32);
  130 +
  131 + }];
  132 +}
  133 +/*
  134 + // Only override drawRect: if you perform custom drawing.
  135 + // An empty implementation adversely affects performance during animation.
  136 + - (void)drawRect:(CGRect)rect {
  137 + // Drawing code
  138 + }
  139 + */
  140 +#pragma mark - Private Methods
  141 +- (NSMutableAttributedString *)createAttributedImageName:(NSString *)imageName string:(NSString *)string isFront:(BOOL)isFront{
  142 + if(isFront){
  143 + string = [NSString stringWithFormat:@" %@",string];
  144 + }
  145 + // 1.创建一个富文本
  146 + NSMutableAttributedString *attri = [[NSMutableAttributedString alloc] initWithString:string];
  147 + // 修改富文本中的不同文字的样式
  148 +// [attri addAttribute:NSForegroundColorAttributeName value:[UIColor whiteColor] range:NSMakeRange(0, string.length)];
  149 +// [attri addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:14] range:NSMakeRange(0, string.length)];
  150 + // 2.添加表情图片
  151 + NSTextAttachment *attch = [[NSTextAttachment alloc] init];
  152 + // 表情图片
  153 + UIImage *xw_image = [self xw_getImageName:imageName bundleName:@"CNLiveSettingModule" targetClass:[CNLiveSettingHeaderView class]];
  154 + attch.image = xw_image;
  155 + if(isFront){
  156 + // 设置图片大小
  157 + attch.bounds = CGRectMake(0, -1.5, 10, 12);
  158 + // 创建带有图片的富文本
  159 + NSAttributedString *str = [NSAttributedString attributedStringWithAttachment:attch];
  160 + [attri insertAttributedString:str atIndex:0];// 插入某个位置
  161 + }else{
  162 + // 设置图片大小
  163 + attch.bounds = CGRectMake(10, -2, 15, 15);
  164 + // 创建带有图片的富文本
  165 + NSAttributedString *str = [NSAttributedString attributedStringWithAttachment:attch];
  166 + [attri insertAttributedString:str atIndex:string.length];// 插入某个位置
  167 +
  168 + }
  169 + return attri;
  170 +
  171 +}
  172 +- (NSMutableAttributedString *)createAttributedImages:(NSArray *)images {
  173 + // 1.创建一个富文本
  174 + NSMutableAttributedString *attri = [[NSMutableAttributedString alloc] initWithString:@""];
  175 + for(NSString *image in images){
  176 + // 2.添加表情图片
  177 + NSTextAttachment *attch = [[NSTextAttachment alloc] init];
  178 + // 表情图片
  179 + UIImage *xw_image = [self xw_getImageName:image bundleName:@"CNLiveSettingModule" targetClass:[CNLiveSettingHeaderView class]];
  180 + attch.image = xw_image;
  181 + // 创建带有图片的富文本
  182 + NSAttributedString *str = [NSAttributedString attributedStringWithAttachment:attch];
  183 + NSAttributedString *space = [[NSAttributedString alloc]initWithString:@" "];
  184 +
  185 + [attri insertAttributedString:space atIndex:0];
  186 + [attri insertAttributedString:str atIndex:0];// 插入某个位置
  187 +
  188 + }
  189 + return attri;
  190 +
  191 +}
  192 +
  193 +#pragma mark - 懒加载
  194 +- (UIButton *)witness {
  195 + if (!_witness) {
  196 + _witness = [UIButton buttonWithType:UIButtonTypeCustom];
  197 + UIImage *xw_image = [self xw_getImageName:@"mine_observer" bundleName:@"CNLiveSettingModule" targetClass:[CNLiveSettingHeaderView class]];
  198 + _witness.imageView.contentMode = UIViewContentModeScaleAspectFit;
  199 + [_witness setImage:xw_image forState:UIControlStateNormal];
  200 + _witness.adjustsImageWhenHighlighted = NO;
  201 + [_witness addTarget:self action:@selector(witnessDidClicked:) forControlEvents:UIControlEventTouchUpInside];
  202 + }
  203 + return _witness;
  204 +}
  205 +- (UIImageView *)bgView {
  206 + if (!_bgView) {
  207 + _bgView = [[UIImageView alloc] init];
  208 + _bgView.userInteractionEnabled = YES;
  209 + UIImage *xw_image = [self xw_getImageName:@"mine_bg" bundleName:@"CNLiveSettingModule" targetClass:[CNLiveSettingHeaderView class]];
  210 + _bgView.image = xw_image;
  211 + }
  212 + return _bgView;
  213 +}
  214 +- (UIImageView *)header {
  215 + if (!_header) {
  216 + _header = [[UIImageView alloc] init];
  217 + _header.userInteractionEnabled = YES;
  218 + _header.layer.masksToBounds = YES;
  219 + _header.layer.cornerRadius = 30;
  220 + UIImage *xw_image = [self xw_getImageName:@"default_avatar_y" bundleName:@"CNLiveSettingModule" targetClass:[CNLiveSettingHeaderView class]];
  221 + [_header sd_setImageWithURL:[NSURL URLWithString:@"头像"] placeholderImage:xw_image];
  222 + UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(headerTapDidClicked:)];
  223 + [_header addGestureRecognizer:tap];
  224 + }
  225 + return _header;
  226 +}
  227 +
  228 +- (UILabel *)name {
  229 + if (!_name) {
  230 + _name = [[UILabel alloc] init];
  231 + _name.userInteractionEnabled = YES;
  232 + _name.numberOfLines = 1;
  233 + _name.textColor = [UIColor whiteColor];
  234 + _name.font = [UIFont systemFontOfSize:16];
  235 + _name.attributedText = [self createAttributedImageName:@"mine_code" string:@"张晓文" isFront:NO];
  236 + UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(nameTapDidClicked:)];
  237 + [_name addGestureRecognizer:tap];
  238 +
  239 + }
  240 + return _name;
  241 +}
  242 +- (UILabel *)certification {
  243 + if (!_certification) {
  244 + _certification = [[UILabel alloc] init];
  245 + _certification.numberOfLines = 1;
  246 + _certification.textColor = [UIColor whiteColor];
  247 + _certification.font = [UIFont systemFontOfSize:16];
  248 + _certification.attributedText = [self createAttributedImages:@[@"mine_overbadge",@"mine_common", @"mine_wjj_certification"]];
  249 + }
  250 + return _certification;
  251 +}
  252 +- (UILabel *)address {
  253 + if (!_address) {
  254 + _address = [[UILabel alloc] init];
  255 + _address.numberOfLines = 1;
  256 + _address.textColor = [UIColor colorWithRed:140/255.0 green:140/255.0 blue:142/255.0 alpha:1.0];
  257 + _address.font = [UIFont systemFontOfSize:13];
  258 + _address.attributedText = [self createAttributedImageName:@"mine_location" string:@"北京海淀区花园桥" isFront:YES];
  259 + }
  260 + return _address;
  261 +}
  262 +- (UIButton *)sign {
  263 + if (!_sign) {
  264 + _sign = [UIButton buttonWithType:UIButtonTypeCustom];
  265 + _sign.frame = CGRectMake(0, 0, 105, 32);
  266 + _sign.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:0.2];
  267 + [_sign setTitle:@"签到赚积分" forState:UIControlStateNormal];
  268 + _sign.titleLabel.font = [UIFont systemFontOfSize:13.0];
  269 + [_sign setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
  270 + UIImage *xw_image = [self xw_getImageName:@"sign_in_soccer" bundleName:@"CNLiveSettingModule" targetClass:[CNLiveSettingHeaderView class]];
  271 + [_sign setImage:xw_image forState:UIControlStateNormal];
  272 + [_sign addTarget:self action:@selector(signDidClicked:) forControlEvents:UIControlEventTouchUpInside];
  273 + UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:_sign.layer.bounds byRoundingCorners:UIRectCornerBottomLeft | UIRectCornerTopLeft cornerRadii:CGSizeMake(16, 16)];
  274 + CAShapeLayer *maskLayer = [CAShapeLayer layer];
  275 + maskLayer.frame = _sign.bounds;
  276 + maskLayer.path = maskPath.CGPath;
  277 + _sign.layer.mask = maskLayer;
  278 + }
  279 + return _sign;
  280 +}
  281 +
  282 +#pragma mark - 响应方法
  283 +- (void)headerTapDidClicked:(UITapGestureRecognizer *)tap{
  284 + if (self.delegate && [self.delegate respondsToSelector:@selector(headerView:pushToController:)]) {
  285 + [self.delegate headerView:self pushToController:CNLiveMineHeaderViewTypeUerInfo];
  286 +
  287 + }
  288 +
  289 +}
  290 +- (void)nameTapDidClicked:(UITapGestureRecognizer *)tap{
  291 + if (self.delegate && [self.delegate respondsToSelector:@selector(headerView:pushToController:)]) {
  292 + [self.delegate headerView:self pushToController:CNLiveMineHeaderViewTypeCode];
  293 +
  294 + }
  295 +
  296 +}
  297 +- (void)signDidClicked:(UIButton *)btn{
  298 + if (self.delegate && [self.delegate respondsToSelector:@selector(headerView:pushToController:)]) {
  299 + [self.delegate headerView:self pushToController:CNLiveMineHeaderViewTypeSign];
  300 + }
  301 +}
  302 +
  303 +- (void)witnessDidClicked:(UIButton *)btn{
  304 + if (self.delegate && [self.delegate respondsToSelector:@selector(headerView:pushToController:)]) {
  305 + [self.delegate headerView:self pushToController:CNLiveMineHeaderViewTypeWintess];
  306 + }
  307 +}
  308 +
  309 +/**
  310 + * 创建图片
  311 + *
  312 + * @param imageName 图片名字
  313 + * @param bundleName 图片所在的bundle名字
  314 + * @param targetClass 类和bundle的同级目录
  315 + * @return 返回UIImage
  316 + */
  317 +- (UIImage *)xw_getImageName:(NSString *)imageName bundleName:(NSString *)bundleName targetClass:(Class)targetClass{
  318 + NSBundle *bundle = [NSBundle bundleForClass:targetClass];
  319 + NSURL *url = [bundle URLForResource:bundleName withExtension:@"bundle"];
  320 + NSBundle *targetBundle = [NSBundle bundleWithURL:url];
  321 + UIImage *image = [UIImage imageNamed:imageName inBundle:targetBundle compatibleWithTraitCollection:nil];
  322 + return image?image:[UIImage imageNamed:imageName inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:nil];
  323 +
  324 +}
  325 +
  326 +@end
... ...
CNLiveSettingModule/Classes/View/CNLiveSettingNavigationBar.h 0 → 100644
  1 +//
  2 +// CNLiveSettingNavigationBar.m
  3 +// CNLiveSettingModule
  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 CNLiveSettingNavigationBar;
  13 +
  14 +@protocol CNLiveSettingNavigationBarDelegate <NSObject>
  15 +- (void)navigationBar:(CNLiveSettingNavigationBar *)navigationBar actionEvents:(NSString *)actionEvents;
  16 +
  17 +@end
  18 +
  19 +@interface CNLiveSettingNavigationBar : UIView
  20 +@property (nonatomic, weak) id<CNLiveSettingNavigationBarDelegate> 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
... ...
CNLiveSettingModule/Classes/View/CNLiveSettingNavigationBar.m 0 → 100644
  1 +//
  2 +// CNLiveSettingNavigationBar.m
  3 +// CNLiveSettingModule
  4 +//
  5 +// Created by 153993236@qq.com on 11/12/2019.
  6 +// Copyright © 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLiveSettingNavigationBar.h"
  10 +#import "QMUIKit.h"
  11 +
  12 +@interface CNLiveSettingNavigationBar ()
  13 +
  14 +@end
  15 +
  16 +@implementation CNLiveSettingNavigationBar
  17 +static const NSInteger margin = 15;
  18 +
  19 +- (instancetype)initWithFrame:(CGRect)frame{
  20 + self = [super initWithFrame:frame];
  21 + if(self){
  22 + self.userInteractionEnabled = YES;
  23 + self.backgroundColor = [UIColor clearColor];
  24 + [self createSubViews];
  25 + }
  26 + return self;
  27 +}
  28 +
  29 +- (void)dealloc {
  30 + NSLog(@"CNLiveUserInfoNavigationBar -- dealloc");
  31 +}
  32 +
  33 +- (void)createSubViews {
  34 + [self addSubview:self.navView];
  35 + [self addSubview:self.left];
  36 + [self addSubview:self.title];
  37 + [self addSubview:self.right];
  38 +}
  39 +
  40 +/*
  41 + // Only override drawRect: if you perform custom drawing.
  42 + // An empty implementation adversely affects performance during animation.
  43 + - (void)drawRect:(CGRect)rect {
  44 + // Drawing code
  45 + }
  46 + */
  47 +
  48 +#pragma mark - 懒加载
  49 +- (UIView *)navView {
  50 + if (!_navView) {
  51 + _navView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, NavigationContentTop)];
  52 + _navView.backgroundColor = [UIColor clearColor];
  53 + }
  54 + return _navView;
  55 +}
  56 +
  57 +- (UIButton *)left {
  58 + if (!_left) {
  59 + _left= [UIButton buttonWithType:UIButtonTypeCustom];
  60 + _left.adjustsImageWhenHighlighted = NO;
  61 + _left.frame = CGRectMake(margin, StatusBarHeight, NavigationBarHeight, NavigationBarHeight);
  62 + UIImage *image = [self xw_getImageName:@"mine_back_black_b" bundleName:@"CNLiveSettingModule" targetClass:[CNLiveSettingNavigationBar class]];
  63 + [_left setImage:[image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] forState:UIControlStateNormal];
  64 + [_left setContentHorizontalAlignment:UIControlContentHorizontalAlignmentLeft];
  65 + [_left addTarget:self action:@selector(goBack) forControlEvents:UIControlEventTouchUpInside];
  66 + }
  67 + return _left;
  68 +}
  69 +
  70 +- (UILabel *)title {
  71 + if (!_title) {
  72 + _title = [[UILabel alloc] initWithFrame:CGRectMake(margin+NavigationBarHeight, StatusBarHeight, SCREEN_WIDTH-2*(margin+NavigationBarHeight), NavigationBarHeight)];
  73 + [_title setFont:[UIFont systemFontOfSize:18]];
  74 + _title.textColor = [UIColor blackColor];
  75 + _title.textAlignment = NSTextAlignmentCenter;
  76 + }
  77 + return _title;
  78 +}
  79 +
  80 +- (UIButton *)right {
  81 + if (!_right) {
  82 + _right = [UIButton buttonWithType:UIButtonTypeCustom];
  83 + _right.frame = CGRectMake(SCREEN_WIDTH-50-margin, StatusBarHeight, 50, NavigationBarHeight);
  84 + [_right setContentHorizontalAlignment:UIControlContentHorizontalAlignmentRight];
  85 + _right.adjustsImageWhenHighlighted = NO;
  86 + _right.titleLabel.font = [UIFont systemFontOfSize:15];
  87 + [_right setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
  88 + [_right addTarget:self action:@selector(rightDidClicked:) forControlEvents:UIControlEventTouchUpInside];
  89 + }
  90 + return _right;
  91 +}
  92 +
  93 +#pragma mark - 响应方法
  94 +- (void)goBack{
  95 + if (self.delegate && [self.delegate respondsToSelector:@selector(navigationBar:actionEvents:)]) {
  96 + [self.delegate navigationBar:self actionEvents:@"1"];
  97 + }
  98 +}
  99 +- (void)rightDidClicked:(UIButton *)btn{
  100 + if (self.delegate && [self.delegate respondsToSelector:@selector(navigationBar:actionEvents:)]) {
  101 + [self.delegate navigationBar:self actionEvents:@"2"];
  102 + }
  103 +}
  104 +
  105 +/**
  106 + * 创建图片
  107 + *
  108 + * @param imageName 图片名字
  109 + * @param bundleName 图片所在的bundle名字
  110 + * @param targetClass 类和bundle的同级目录
  111 + * @return 返回UIImage
  112 + */
  113 +- (UIImage *)xw_getImageName:(NSString *)imageName bundleName:(NSString *)bundleName targetClass:(Class)targetClass{
  114 + NSBundle *bundle = [NSBundle bundleForClass:targetClass];
  115 + NSURL *url = [bundle URLForResource:bundleName withExtension:@"bundle"];
  116 + NSBundle *targetBundle = [NSBundle bundleWithURL:url];
  117 + UIImage *image = [UIImage imageNamed:imageName inBundle:targetBundle compatibleWithTraitCollection:nil];
  118 + return image?image:[UIImage imageNamed:imageName inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:nil];
  119 +
  120 +}
  121 +
  122 +@end
... ...
Example/CNLiveSettingModule.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 + 3357A58B8CCD421AE94BA2E0 /* Pods_CNLiveSettingModule_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6748F6232B2ADAAB9132E5DF /* Pods_CNLiveSettingModule_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 + C8A13CAD98E3D5C5CEB05F1B /* Pods_CNLiveSettingModule_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3F54E93F13650F5D31EE917E /* Pods_CNLiveSettingModule_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 = CNLiveSettingModule;
  36 + };
  37 +/* End PBXContainerItemProxy section */
  38 +
  39 +/* Begin PBXFileReference section */
  40 + 06D4BA97F73EEB8BD0344A7C /* Pods-CNLiveSettingModule_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveSettingModule_Tests.release.xcconfig"; path = "Target Support Files/Pods-CNLiveSettingModule_Tests/Pods-CNLiveSettingModule_Tests.release.xcconfig"; sourceTree = "<group>"; };
  41 + 1374EC7D2C8BA606239AA8BB /* Pods-CNLiveSettingModule_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveSettingModule_Example.debug.xcconfig"; path = "Target Support Files/Pods-CNLiveSettingModule_Example/Pods-CNLiveSettingModule_Example.debug.xcconfig"; sourceTree = "<group>"; };
  42 + 2AB2C3094DE741994EE23A41 /* Pods-CNLiveSettingModule_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveSettingModule_Tests.debug.xcconfig"; path = "Target Support Files/Pods-CNLiveSettingModule_Tests/Pods-CNLiveSettingModule_Tests.debug.xcconfig"; sourceTree = "<group>"; };
  43 + 3F54E93F13650F5D31EE917E /* Pods_CNLiveSettingModule_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CNLiveSettingModule_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
  44 + 6003F58A195388D20070C39A /* CNLiveSettingModule_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CNLiveSettingModule_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
  45 + 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
  46 + 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
  47 + 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
  48 + 6003F595195388D20070C39A /* CNLiveSettingModule-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "CNLiveSettingModule-Info.plist"; sourceTree = "<group>"; };
  49 + 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
  50 + 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
  51 + 6003F59B195388D20070C39A /* CNLiveSettingModule-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "CNLiveSettingModule-Prefix.pch"; sourceTree = "<group>"; };
  52 + 6003F59C195388D20070C39A /* CNLIVEAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLIVEAppDelegate.h; sourceTree = "<group>"; };
  53 + 6003F59D195388D20070C39A /* CNLIVEAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLIVEAppDelegate.m; sourceTree = "<group>"; };
  54 + 6003F5A5195388D20070C39A /* CNLIVEViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CNLIVEViewController.h; sourceTree = "<group>"; };
  55 + 6003F5A6195388D20070C39A /* CNLIVEViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CNLIVEViewController.m; sourceTree = "<group>"; };
  56 + 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
  57 + 6003F5AE195388D20070C39A /* CNLiveSettingModule_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CNLiveSettingModule_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
  58 + 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
  59 + 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = "<group>"; };
  60 + 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
  61 + 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = "<group>"; };
  62 + 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = "<group>"; };
  63 + 6748F6232B2ADAAB9132E5DF /* Pods_CNLiveSettingModule_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CNLiveSettingModule_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
  64 + 71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
  65 + 7608F06366CAB4063CD3773F /* Pods-CNLiveSettingModule_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CNLiveSettingModule_Example.release.xcconfig"; path = "Target Support Files/Pods-CNLiveSettingModule_Example/Pods-CNLiveSettingModule_Example.release.xcconfig"; sourceTree = "<group>"; };
  66 + 7F84C6112E15F63011058A65 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
  67 + 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
  68 + 95358870EC2FCE896FDE9B0D /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
  69 + 9884781CD754C3E85F7B5AF4 /* CNLiveSettingModule.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = CNLiveSettingModule.podspec; path = ../CNLiveSettingModule.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
  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 + 3357A58B8CCD421AE94BA2E0 /* Pods_CNLiveSettingModule_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 + C8A13CAD98E3D5C5CEB05F1B /* Pods_CNLiveSettingModule_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 CNLiveSettingModule */,
  103 + 6003F5B5195388D20070C39A /* Tests */,
  104 + 6003F58C195388D20070C39A /* Frameworks */,
  105 + 6003F58B195388D20070C39A /* Products */,
  106 + F08E3F4C279972E40D202D84 /* Pods */,
  107 + );
  108 + sourceTree = "<group>";
  109 + };
  110 + 6003F58B195388D20070C39A /* Products */ = {
  111 + isa = PBXGroup;
  112 + children = (
  113 + 6003F58A195388D20070C39A /* CNLiveSettingModule_Example.app */,
  114 + 6003F5AE195388D20070C39A /* CNLiveSettingModule_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 + 6748F6232B2ADAAB9132E5DF /* Pods_CNLiveSettingModule_Example.framework */,
  127 + 3F54E93F13650F5D31EE917E /* Pods_CNLiveSettingModule_Tests.framework */,
  128 + );
  129 + name = Frameworks;
  130 + sourceTree = "<group>";
  131 + };
  132 + 6003F593195388D20070C39A /* Example for CNLiveSettingModule */ = {
  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 CNLiveSettingModule";
  145 + path = CNLiveSettingModule;
  146 + sourceTree = "<group>";
  147 + };
  148 + 6003F594195388D20070C39A /* Supporting Files */ = {
  149 + isa = PBXGroup;
  150 + children = (
  151 + 6003F595195388D20070C39A /* CNLiveSettingModule-Info.plist */,
  152 + 6003F596195388D20070C39A /* InfoPlist.strings */,
  153 + 6003F599195388D20070C39A /* main.m */,
  154 + 6003F59B195388D20070C39A /* CNLiveSettingModule-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 + 9884781CD754C3E85F7B5AF4 /* CNLiveSettingModule.podspec */,
  182 + 7F84C6112E15F63011058A65 /* README.md */,
  183 + 95358870EC2FCE896FDE9B0D /* LICENSE */,
  184 + );
  185 + name = "Podspec Metadata";
  186 + sourceTree = "<group>";
  187 + };
  188 + F08E3F4C279972E40D202D84 /* Pods */ = {
  189 + isa = PBXGroup;
  190 + children = (
  191 + 1374EC7D2C8BA606239AA8BB /* Pods-CNLiveSettingModule_Example.debug.xcconfig */,
  192 + 7608F06366CAB4063CD3773F /* Pods-CNLiveSettingModule_Example.release.xcconfig */,
  193 + 2AB2C3094DE741994EE23A41 /* Pods-CNLiveSettingModule_Tests.debug.xcconfig */,
  194 + 06D4BA97F73EEB8BD0344A7C /* Pods-CNLiveSettingModule_Tests.release.xcconfig */,
  195 + );
  196 + path = Pods;
  197 + sourceTree = "<group>";
  198 + };
  199 +/* End PBXGroup section */
  200 +
  201 +/* Begin PBXNativeTarget section */
  202 + 6003F589195388D20070C39A /* CNLiveSettingModule_Example */ = {
  203 + isa = PBXNativeTarget;
  204 + buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveSettingModule_Example" */;
  205 + buildPhases = (
  206 + B63C2143E7B1CC8A1F17474A /* [CP] Check Pods Manifest.lock */,
  207 + 6003F586195388D20070C39A /* Sources */,
  208 + 6003F587195388D20070C39A /* Frameworks */,
  209 + 6003F588195388D20070C39A /* Resources */,
  210 + CF894FF382F663F823338760 /* [CP] Embed Pods Frameworks */,
  211 + );
  212 + buildRules = (
  213 + );
  214 + dependencies = (
  215 + );
  216 + name = CNLiveSettingModule_Example;
  217 + productName = CNLiveSettingModule;
  218 + productReference = 6003F58A195388D20070C39A /* CNLiveSettingModule_Example.app */;
  219 + productType = "com.apple.product-type.application";
  220 + };
  221 + 6003F5AD195388D20070C39A /* CNLiveSettingModule_Tests */ = {
  222 + isa = PBXNativeTarget;
  223 + buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveSettingModule_Tests" */;
  224 + buildPhases = (
  225 + 653FED99FAD33AD7306D3799 /* [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 = CNLiveSettingModule_Tests;
  236 + productName = CNLiveSettingModuleTests;
  237 + productReference = 6003F5AE195388D20070C39A /* CNLiveSettingModule_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 + 6003F589195388D20070C39A = {
  251 + DevelopmentTeam = 94X49GG3ZW;
  252 + };
  253 + 6003F5AD195388D20070C39A = {
  254 + TestTargetID = 6003F589195388D20070C39A;
  255 + };
  256 + };
  257 + };
  258 + buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "CNLiveSettingModule" */;
  259 + compatibilityVersion = "Xcode 3.2";
  260 + developmentRegion = English;
  261 + hasScannedForEncodings = 0;
  262 + knownRegions = (
  263 + English,
  264 + en,
  265 + Base,
  266 + );
  267 + mainGroup = 6003F581195388D10070C39A;
  268 + productRefGroup = 6003F58B195388D20070C39A /* Products */;
  269 + projectDirPath = "";
  270 + projectRoot = "";
  271 + targets = (
  272 + 6003F589195388D20070C39A /* CNLiveSettingModule_Example */,
  273 + 6003F5AD195388D20070C39A /* CNLiveSettingModule_Tests */,
  274 + );
  275 + };
  276 +/* End PBXProject section */
  277 +
  278 +/* Begin PBXResourcesBuildPhase section */
  279 + 6003F588195388D20070C39A /* Resources */ = {
  280 + isa = PBXResourcesBuildPhase;
  281 + buildActionMask = 2147483647;
  282 + files = (
  283 + 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */,
  284 + 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */,
  285 + 6003F5A9195388D20070C39A /* Images.xcassets in Resources */,
  286 + 6003F598195388D20070C39A /* InfoPlist.strings in Resources */,
  287 + );
  288 + runOnlyForDeploymentPostprocessing = 0;
  289 + };
  290 + 6003F5AC195388D20070C39A /* Resources */ = {
  291 + isa = PBXResourcesBuildPhase;
  292 + buildActionMask = 2147483647;
  293 + files = (
  294 + 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */,
  295 + );
  296 + runOnlyForDeploymentPostprocessing = 0;
  297 + };
  298 +/* End PBXResourcesBuildPhase section */
  299 +
  300 +/* Begin PBXShellScriptBuildPhase section */
  301 + 653FED99FAD33AD7306D3799 /* [CP] Check Pods Manifest.lock */ = {
  302 + isa = PBXShellScriptBuildPhase;
  303 + buildActionMask = 2147483647;
  304 + files = (
  305 + );
  306 + inputFileListPaths = (
  307 + );
  308 + inputPaths = (
  309 + "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
  310 + "${PODS_ROOT}/Manifest.lock",
  311 + );
  312 + name = "[CP] Check Pods Manifest.lock";
  313 + outputFileListPaths = (
  314 + );
  315 + outputPaths = (
  316 + "$(DERIVED_FILE_DIR)/Pods-CNLiveSettingModule_Tests-checkManifestLockResult.txt",
  317 + );
  318 + runOnlyForDeploymentPostprocessing = 0;
  319 + shellPath = /bin/sh;
  320 + 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";
  321 + showEnvVarsInLog = 0;
  322 + };
  323 + B63C2143E7B1CC8A1F17474A /* [CP] Check Pods Manifest.lock */ = {
  324 + isa = PBXShellScriptBuildPhase;
  325 + buildActionMask = 2147483647;
  326 + files = (
  327 + );
  328 + inputFileListPaths = (
  329 + );
  330 + inputPaths = (
  331 + "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
  332 + "${PODS_ROOT}/Manifest.lock",
  333 + );
  334 + name = "[CP] Check Pods Manifest.lock";
  335 + outputFileListPaths = (
  336 + );
  337 + outputPaths = (
  338 + "$(DERIVED_FILE_DIR)/Pods-CNLiveSettingModule_Example-checkManifestLockResult.txt",
  339 + );
  340 + runOnlyForDeploymentPostprocessing = 0;
  341 + shellPath = /bin/sh;
  342 + 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";
  343 + showEnvVarsInLog = 0;
  344 + };
  345 + CF894FF382F663F823338760 /* [CP] Embed Pods Frameworks */ = {
  346 + isa = PBXShellScriptBuildPhase;
  347 + buildActionMask = 2147483647;
  348 + files = (
  349 + );
  350 + inputPaths = (
  351 + "${PODS_ROOT}/Target Support Files/Pods-CNLiveSettingModule_Example/Pods-CNLiveSettingModule_Example-frameworks.sh",
  352 + "${BUILT_PRODUCTS_DIR}/CNLiveBeeHive/CNLiveBeeHive.framework",
  353 + "${BUILT_PRODUCTS_DIR}/CNLiveSettingModule/CNLiveSettingModule.framework",
  354 + "${BUILT_PRODUCTS_DIR}/CNLiveTripartiteManagement/CNLiveTripartiteManagement.framework",
  355 + "${BUILT_PRODUCTS_DIR}/CNLiveUserManagement/CNLiveUserManagement.framework",
  356 + "${BUILT_PRODUCTS_DIR}/MJExtension/MJExtension.framework",
  357 + "${BUILT_PRODUCTS_DIR}/Masonry/Masonry.framework",
  358 + "${BUILT_PRODUCTS_DIR}/QMUIKit/QMUIKit.framework",
  359 + "${BUILT_PRODUCTS_DIR}/SDWebImage/SDWebImage.framework",
  360 + );
  361 + name = "[CP] Embed Pods Frameworks";
  362 + outputPaths = (
  363 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBeeHive.framework",
  364 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveSettingModule.framework",
  365 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveTripartiteManagement.framework",
  366 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveUserManagement.framework",
  367 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MJExtension.framework",
  368 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Masonry.framework",
  369 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/QMUIKit.framework",
  370 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImage.framework",
  371 + );
  372 + runOnlyForDeploymentPostprocessing = 0;
  373 + shellPath = /bin/sh;
  374 + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CNLiveSettingModule_Example/Pods-CNLiveSettingModule_Example-frameworks.sh\"\n";
  375 + showEnvVarsInLog = 0;
  376 + };
  377 +/* End PBXShellScriptBuildPhase section */
  378 +
  379 +/* Begin PBXSourcesBuildPhase section */
  380 + 6003F586195388D20070C39A /* Sources */ = {
  381 + isa = PBXSourcesBuildPhase;
  382 + buildActionMask = 2147483647;
  383 + files = (
  384 + 6003F59E195388D20070C39A /* CNLIVEAppDelegate.m in Sources */,
  385 + 6003F5A7195388D20070C39A /* CNLIVEViewController.m in Sources */,
  386 + 6003F59A195388D20070C39A /* main.m in Sources */,
  387 + );
  388 + runOnlyForDeploymentPostprocessing = 0;
  389 + };
  390 + 6003F5AA195388D20070C39A /* Sources */ = {
  391 + isa = PBXSourcesBuildPhase;
  392 + buildActionMask = 2147483647;
  393 + files = (
  394 + 6003F5BC195388D20070C39A /* Tests.m in Sources */,
  395 + );
  396 + runOnlyForDeploymentPostprocessing = 0;
  397 + };
  398 +/* End PBXSourcesBuildPhase section */
  399 +
  400 +/* Begin PBXTargetDependency section */
  401 + 6003F5B4195388D20070C39A /* PBXTargetDependency */ = {
  402 + isa = PBXTargetDependency;
  403 + target = 6003F589195388D20070C39A /* CNLiveSettingModule_Example */;
  404 + targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */;
  405 + };
  406 +/* End PBXTargetDependency section */
  407 +
  408 +/* Begin PBXVariantGroup section */
  409 + 6003F596195388D20070C39A /* InfoPlist.strings */ = {
  410 + isa = PBXVariantGroup;
  411 + children = (
  412 + 6003F597195388D20070C39A /* en */,
  413 + );
  414 + name = InfoPlist.strings;
  415 + sourceTree = "<group>";
  416 + };
  417 + 6003F5B8195388D20070C39A /* InfoPlist.strings */ = {
  418 + isa = PBXVariantGroup;
  419 + children = (
  420 + 6003F5B9195388D20070C39A /* en */,
  421 + );
  422 + name = InfoPlist.strings;
  423 + sourceTree = "<group>";
  424 + };
  425 + 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */ = {
  426 + isa = PBXVariantGroup;
  427 + children = (
  428 + 71719F9E1E33DC2100824A3D /* Base */,
  429 + );
  430 + name = LaunchScreen.storyboard;
  431 + sourceTree = "<group>";
  432 + };
  433 +/* End PBXVariantGroup section */
  434 +
  435 +/* Begin XCBuildConfiguration section */
  436 + 6003F5BD195388D20070C39A /* Debug */ = {
  437 + isa = XCBuildConfiguration;
  438 + buildSettings = {
  439 + ALWAYS_SEARCH_USER_PATHS = NO;
  440 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  441 + CLANG_CXX_LIBRARY = "libc++";
  442 + CLANG_ENABLE_MODULES = YES;
  443 + CLANG_ENABLE_OBJC_ARC = YES;
  444 + CLANG_WARN_BOOL_CONVERSION = YES;
  445 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  446 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  447 + CLANG_WARN_EMPTY_BODY = YES;
  448 + CLANG_WARN_ENUM_CONVERSION = YES;
  449 + CLANG_WARN_INT_CONVERSION = YES;
  450 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  451 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
  452 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  453 + COPY_PHASE_STRIP = NO;
  454 + ENABLE_TESTABILITY = YES;
  455 + GCC_C_LANGUAGE_STANDARD = gnu99;
  456 + GCC_DYNAMIC_NO_PIC = NO;
  457 + GCC_OPTIMIZATION_LEVEL = 0;
  458 + GCC_PREPROCESSOR_DEFINITIONS = (
  459 + "DEBUG=1",
  460 + "$(inherited)",
  461 + );
  462 + GCC_SYMBOLS_PRIVATE_EXTERN = NO;
  463 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  464 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  465 + GCC_WARN_UNDECLARED_SELECTOR = YES;
  466 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  467 + GCC_WARN_UNUSED_FUNCTION = YES;
  468 + GCC_WARN_UNUSED_VARIABLE = YES;
  469 + IPHONEOS_DEPLOYMENT_TARGET = 9.3;
  470 + ONLY_ACTIVE_ARCH = YES;
  471 + SDKROOT = iphoneos;
  472 + TARGETED_DEVICE_FAMILY = "1,2";
  473 + };
  474 + name = Debug;
  475 + };
  476 + 6003F5BE195388D20070C39A /* Release */ = {
  477 + isa = XCBuildConfiguration;
  478 + buildSettings = {
  479 + ALWAYS_SEARCH_USER_PATHS = NO;
  480 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  481 + CLANG_CXX_LIBRARY = "libc++";
  482 + CLANG_ENABLE_MODULES = YES;
  483 + CLANG_ENABLE_OBJC_ARC = YES;
  484 + CLANG_WARN_BOOL_CONVERSION = YES;
  485 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  486 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  487 + CLANG_WARN_EMPTY_BODY = YES;
  488 + CLANG_WARN_ENUM_CONVERSION = YES;
  489 + CLANG_WARN_INT_CONVERSION = YES;
  490 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  491 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
  492 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  493 + COPY_PHASE_STRIP = YES;
  494 + ENABLE_NS_ASSERTIONS = NO;
  495 + GCC_C_LANGUAGE_STANDARD = gnu99;
  496 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  497 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  498 + GCC_WARN_UNDECLARED_SELECTOR = YES;
  499 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  500 + GCC_WARN_UNUSED_FUNCTION = YES;
  501 + GCC_WARN_UNUSED_VARIABLE = YES;
  502 + IPHONEOS_DEPLOYMENT_TARGET = 9.3;
  503 + SDKROOT = iphoneos;
  504 + TARGETED_DEVICE_FAMILY = "1,2";
  505 + VALIDATE_PRODUCT = YES;
  506 + };
  507 + name = Release;
  508 + };
  509 + 6003F5C0195388D20070C39A /* Debug */ = {
  510 + isa = XCBuildConfiguration;
  511 + baseConfigurationReference = 1374EC7D2C8BA606239AA8BB /* Pods-CNLiveSettingModule_Example.debug.xcconfig */;
  512 + buildSettings = {
  513 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  514 + DEVELOPMENT_TEAM = 94X49GG3ZW;
  515 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  516 + GCC_PREFIX_HEADER = "CNLiveSettingModule/CNLiveSettingModule-Prefix.pch";
  517 + INFOPLIST_FILE = "CNLiveSettingModule/CNLiveSettingModule-Info.plist";
  518 + MODULE_NAME = ExampleApp;
  519 + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
  520 + PRODUCT_NAME = "$(TARGET_NAME)";
  521 + SWIFT_VERSION = 4.0;
  522 + WRAPPER_EXTENSION = app;
  523 + };
  524 + name = Debug;
  525 + };
  526 + 6003F5C1195388D20070C39A /* Release */ = {
  527 + isa = XCBuildConfiguration;
  528 + baseConfigurationReference = 7608F06366CAB4063CD3773F /* Pods-CNLiveSettingModule_Example.release.xcconfig */;
  529 + buildSettings = {
  530 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  531 + DEVELOPMENT_TEAM = 94X49GG3ZW;
  532 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  533 + GCC_PREFIX_HEADER = "CNLiveSettingModule/CNLiveSettingModule-Prefix.pch";
  534 + INFOPLIST_FILE = "CNLiveSettingModule/CNLiveSettingModule-Info.plist";
  535 + MODULE_NAME = ExampleApp;
  536 + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
  537 + PRODUCT_NAME = "$(TARGET_NAME)";
  538 + SWIFT_VERSION = 4.0;
  539 + WRAPPER_EXTENSION = app;
  540 + };
  541 + name = Release;
  542 + };
  543 + 6003F5C3195388D20070C39A /* Debug */ = {
  544 + isa = XCBuildConfiguration;
  545 + baseConfigurationReference = 2AB2C3094DE741994EE23A41 /* Pods-CNLiveSettingModule_Tests.debug.xcconfig */;
  546 + buildSettings = {
  547 + BUNDLE_LOADER = "$(TEST_HOST)";
  548 + FRAMEWORK_SEARCH_PATHS = (
  549 + "$(PLATFORM_DIR)/Developer/Library/Frameworks",
  550 + "$(inherited)",
  551 + "$(DEVELOPER_FRAMEWORKS_DIR)",
  552 + );
  553 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  554 + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch";
  555 + GCC_PREPROCESSOR_DEFINITIONS = (
  556 + "DEBUG=1",
  557 + "$(inherited)",
  558 + );
  559 + INFOPLIST_FILE = "Tests/Tests-Info.plist";
  560 + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
  561 + PRODUCT_NAME = "$(TARGET_NAME)";
  562 + SWIFT_VERSION = 4.0;
  563 + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CNLiveSettingModule_Example.app/CNLiveSettingModule_Example";
  564 + WRAPPER_EXTENSION = xctest;
  565 + };
  566 + name = Debug;
  567 + };
  568 + 6003F5C4195388D20070C39A /* Release */ = {
  569 + isa = XCBuildConfiguration;
  570 + baseConfigurationReference = 06D4BA97F73EEB8BD0344A7C /* Pods-CNLiveSettingModule_Tests.release.xcconfig */;
  571 + buildSettings = {
  572 + BUNDLE_LOADER = "$(TEST_HOST)";
  573 + FRAMEWORK_SEARCH_PATHS = (
  574 + "$(PLATFORM_DIR)/Developer/Library/Frameworks",
  575 + "$(inherited)",
  576 + "$(DEVELOPER_FRAMEWORKS_DIR)",
  577 + );
  578 + GCC_PRECOMPILE_PREFIX_HEADER = YES;
  579 + GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch";
  580 + INFOPLIST_FILE = "Tests/Tests-Info.plist";
  581 + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}";
  582 + PRODUCT_NAME = "$(TARGET_NAME)";
  583 + SWIFT_VERSION = 4.0;
  584 + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CNLiveSettingModule_Example.app/CNLiveSettingModule_Example";
  585 + WRAPPER_EXTENSION = xctest;
  586 + };
  587 + name = Release;
  588 + };
  589 +/* End XCBuildConfiguration section */
  590 +
  591 +/* Begin XCConfigurationList section */
  592 + 6003F585195388D10070C39A /* Build configuration list for PBXProject "CNLiveSettingModule" */ = {
  593 + isa = XCConfigurationList;
  594 + buildConfigurations = (
  595 + 6003F5BD195388D20070C39A /* Debug */,
  596 + 6003F5BE195388D20070C39A /* Release */,
  597 + );
  598 + defaultConfigurationIsVisible = 0;
  599 + defaultConfigurationName = Release;
  600 + };
  601 + 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveSettingModule_Example" */ = {
  602 + isa = XCConfigurationList;
  603 + buildConfigurations = (
  604 + 6003F5C0195388D20070C39A /* Debug */,
  605 + 6003F5C1195388D20070C39A /* Release */,
  606 + );
  607 + defaultConfigurationIsVisible = 0;
  608 + defaultConfigurationName = Release;
  609 + };
  610 + 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "CNLiveSettingModule_Tests" */ = {
  611 + isa = XCConfigurationList;
  612 + buildConfigurations = (
  613 + 6003F5C3195388D20070C39A /* Debug */,
  614 + 6003F5C4195388D20070C39A /* Release */,
  615 + );
  616 + defaultConfigurationIsVisible = 0;
  617 + defaultConfigurationName = Release;
  618 + };
  619 +/* End XCConfigurationList section */
  620 + };
  621 + rootObject = 6003F582195388D10070C39A /* Project object */;
  622 +}
... ...
Example/CNLiveSettingModule.xcodeproj/xcshareddata/xcschemes/CNLiveSettingModule-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 = "CNLiveSettingModule_Example.app"
  19 + BlueprintName = "CNLiveSettingModule_Example"
  20 + ReferencedContainer = "container:CNLiveSettingModule.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 = "CNLiveSettingModule_Tests.xctest"
  37 + BlueprintName = "CNLiveSettingModule_Tests"
  38 + ReferencedContainer = "container:CNLiveSettingModule.xcodeproj">
  39 + </BuildableReference>
  40 + </TestableReference>
  41 + </Testables>
  42 + <MacroExpansion>
  43 + <BuildableReference
  44 + BuildableIdentifier = "primary"
  45 + BlueprintIdentifier = "6003F589195388D20070C39A"
  46 + BuildableName = "CNLiveSettingModule_Example.app"
  47 + BlueprintName = "CNLiveSettingModule_Example"
  48 + ReferencedContainer = "container:CNLiveSettingModule.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 = "CNLiveSettingModule_Example.app"
  70 + BlueprintName = "CNLiveSettingModule_Example"
  71 + ReferencedContainer = "container:CNLiveSettingModule.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 = "CNLiveSettingModule_Example.app"
  89 + BlueprintName = "CNLiveSettingModule_Example"
  90 + ReferencedContainer = "container:CNLiveSettingModule.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/CNLiveSettingModule/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/CNLiveSettingModule/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/CNLiveSettingModule/CNLIVEAppDelegate.h 0 → 100644
  1 +//
  2 +// CNLIVEAppDelegate.h
  3 +// CNLiveSettingModule
  4 +//
  5 +// Created by 153993236@qq.com on 11/16/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/CNLiveSettingModule/CNLIVEAppDelegate.m 0 → 100644
  1 +//
  2 +// CNLIVEAppDelegate.m
  3 +// CNLiveSettingModule
  4 +//
  5 +// Created by 153993236@qq.com on 11/16/2019.
  6 +// Copyright (c) 2019 153993236@qq.com. All rights reserved.
  7 +//
  8 +
  9 +#import "CNLIVEAppDelegate.h"
  10 +#import "CNLiveSettingController.h"
  11 +
  12 +@implementation CNLIVEAppDelegate
  13 +
  14 +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  15 +{
  16 + // Override point for customization after application launch.
  17 + self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];//UIScreen mainScreen].bounds个人理解获取屏幕的硬件信息然后设置尺寸大小
  18 + CNLiveSettingController *vc = [[CNLiveSettingController alloc] init];
  19 + UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:vc];
  20 + self.window.rootViewController = nav;//设置根视图控制器
  21 + [self.window makeKeyAndVisible];
  22 + return YES;
  23 +}
  24 +
  25 +- (void)applicationWillResignActive:(UIApplication *)application
  26 +{
  27 + // 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.
  28 + // 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.
  29 +}
  30 +
  31 +- (void)applicationDidEnterBackground:(UIApplication *)application
  32 +{
  33 + // 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.
  34 + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
  35 +}
  36 +
  37 +- (void)applicationWillEnterForeground:(UIApplication *)application
  38 +{
  39 + // 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.
  40 +}
  41 +
  42 +- (void)applicationDidBecomeActive:(UIApplication *)application
  43 +{
  44 + // 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.
  45 +}
  46 +
  47 +- (void)applicationWillTerminate:(UIApplication *)application
  48 +{
  49 + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
  50 +}
  51 +
  52 +@end
... ...
Example/CNLiveSettingModule/CNLIVEViewController.h 0 → 100644
  1 +//
  2 +// CNLIVEViewController.h
  3 +// CNLiveSettingModule
  4 +//
  5 +// Created by 153993236@qq.com on 11/16/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/CNLiveSettingModule/CNLIVEViewController.m 0 → 100644
  1 +//
  2 +// CNLIVEViewController.m
  3 +// CNLiveSettingModule
  4 +//
  5 +// Created by 153993236@qq.com on 11/16/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/CNLiveSettingModule/CNLiveSettingModule-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/CNLiveSettingModule/CNLiveSettingModule-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/CNLiveSettingModule/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/CNLiveSettingModule/en.lproj/InfoPlist.strings 0 → 100644
  1 +/* Localized versions of Info.plist keys */
  2 +
... ...
Example/CNLiveSettingModule/main.m 0 → 100644
  1 +//
  2 +// main.m
  3 +// CNLiveSettingModule
  4 +//
  5 +// Created by 153993236@qq.com on 11/16/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 'CNLiveSettingModule_Example' do
  8 + pod 'CNLiveSettingModule', :path => '../'
  9 +
  10 + target 'CNLiveSettingModule_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 +// CNLiveSettingModuleTests.m
  3 +// CNLiveSettingModuleTests
  4 +//
  5 +// Created by 153993236@qq.com on 11/16/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   -设置模块组件化
2 1 \ No newline at end of file
  2 +# CNLiveSettingModule
  3 +
  4 +[![CI Status](https://img.shields.io/travis/153993236@qq.com/CNLiveSettingModule.svg?style=flat)](https://travis-ci.org/153993236@qq.com/CNLiveSettingModule)
  5 +[![Version](https://img.shields.io/cocoapods/v/CNLiveSettingModule.svg?style=flat)](https://cocoapods.org/pods/CNLiveSettingModule)
  6 +[![License](https://img.shields.io/cocoapods/l/CNLiveSettingModule.svg?style=flat)](https://cocoapods.org/pods/CNLiveSettingModule)
  7 +[![Platform](https://img.shields.io/cocoapods/p/CNLiveSettingModule.svg?style=flat)](https://cocoapods.org/pods/CNLiveSettingModule)
  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 +CNLiveSettingModule is available through [CocoaPods](https://cocoapods.org). To install
  18 +it, simply add the following line to your Podfile:
  19 +
  20 +```ruby
  21 +pod 'CNLiveSettingModule'
  22 +```
  23 +
  24 +## Author
  25 +
  26 +153993236@qq.com, zhangxiaowen@cnlive.com
  27 +
  28 +## License
  29 +
  30 +CNLiveSettingModule 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
... ...