Commit c37aaa819c6429a6264b95f5740dfcf72dc1ddf7

Authored by 梁星国
1 parent b2a0b938

提交0.1.1

CNLiveImagePickerController.podspec
@@ -28,7 +28,7 @@ TODO: Add long description of the pod here. @@ -28,7 +28,7 @@ TODO: Add long description of the pod here.
28 s.source = { :git => 'http://bj.gitlab.cnlive.com/ios-team/CNLiveImagePickerController.git', :tag => s.version.to_s } 28 s.source = { :git => 'http://bj.gitlab.cnlive.com/ios-team/CNLiveImagePickerController.git', :tag => s.version.to_s }
29 # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>' 29 # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
30 30
31 - s.ios.deployment_target = '8.0' 31 + s.ios.deployment_target = '9.0'
32 32
33 s.requires_arc = true 33 s.requires_arc = true
34 s.resources = "CNLiveImagePickerController/Classes/*.{png,bundle}" 34 s.resources = "CNLiveImagePickerController/Classes/*.{png,bundle}"
@@ -41,8 +41,8 @@ TODO: Add long description of the pod here. @@ -41,8 +41,8 @@ TODO: Add long description of the pod here.
41 41
42 # s.public_header_files = 'Pod/Classes/**/*.h' 42 # s.public_header_files = 'Pod/Classes/**/*.h'
43 # s.frameworks = 'UIKit', 'MapKit' 43 # s.frameworks = 'UIKit', 'MapKit'
44 - s.dependency 'CNLiveBaseKit'  
45 -# s.dependency 'CNLiveUploadManager' 44 + s.dependency 'CNLiveBaseKit'
  45 + # s.dependency 'CNLiveUploadManager'
46 46
47 47
48 48
Example/CNLiveImagePickerController.xcodeproj/project.pbxproj
@@ -305,11 +305,17 @@ @@ -305,11 +305,17 @@
305 ); 305 );
306 inputPaths = ( 306 inputPaths = (
307 "${PODS_ROOT}/Target Support Files/Pods-CNLiveImagePickerController_Example/Pods-CNLiveImagePickerController_Example-frameworks.sh", 307 "${PODS_ROOT}/Target Support Files/Pods-CNLiveImagePickerController_Example/Pods-CNLiveImagePickerController_Example-frameworks.sh",
  308 + "${BUILT_PRODUCTS_DIR}/CNLiveBaseKit/CNLiveBaseKit.framework",
308 "${BUILT_PRODUCTS_DIR}/CNLiveImagePickerController/CNLiveImagePickerController.framework", 309 "${BUILT_PRODUCTS_DIR}/CNLiveImagePickerController/CNLiveImagePickerController.framework",
  310 + "${BUILT_PRODUCTS_DIR}/CNLiveTripartiteManagement/CNLiveTripartiteManagement.framework",
  311 + "${BUILT_PRODUCTS_DIR}/MJExtension/MJExtension.framework",
309 ); 312 );
310 name = "[CP] Embed Pods Frameworks"; 313 name = "[CP] Embed Pods Frameworks";
311 outputPaths = ( 314 outputPaths = (
  315 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveBaseKit.framework",
312 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveImagePickerController.framework", 316 "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveImagePickerController.framework",
  317 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveTripartiteManagement.framework",
  318 + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MJExtension.framework",
313 ); 319 );
314 runOnlyForDeploymentPostprocessing = 0; 320 runOnlyForDeploymentPostprocessing = 0;
315 shellPath = /bin/sh; 321 shellPath = /bin/sh;
Example/CNLiveImagePickerController/CNLiveImagePickerController-Info.plist
@@ -28,6 +28,31 @@ @@ -28,6 +28,31 @@
28 <string>LaunchScreen</string> 28 <string>LaunchScreen</string>
29 <key>UIMainStoryboardFile</key> 29 <key>UIMainStoryboardFile</key>
30 <string>Main</string> 30 <string>Main</string>
  31 +
  32 + <key>NSBluetoothAlwaysUsageDescription</key>
  33 + <string>需要允许开启蓝牙才能对音箱使用配对及配网功能</string>
  34 + <key>NSBluetoothPeripheralUsageDescription</key>
  35 + <string>需要允许开启蓝牙才能对音箱使用配对及配网功能</string>
  36 + <key>NSCameraUsageDescription</key>
  37 + <string>需要允许开启相机才能在发布生活圈或聊天时使用录制视频和拍照功能</string>
  38 + <key>NSContactsUsageDescription</key>
  39 + <string>需要允许访问通讯录才能获取手机联系人中的网家家用户</string>
  40 + <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
  41 + <string>需要允许使用您的位置信息才能获取您所在的城市</string>
  42 + <key>NSLocationAlwaysUsageDescription</key>
  43 + <string>需要允许使用您的位置信息才能获取您所在的城市</string>
  44 + <key>NSLocationWhenInUseUsageDescription</key>
  45 + <string>需要允许使用您的位置信息才能获取您所在的城市</string>
  46 + <key>NSMicrophoneUsageDescription</key>
  47 + <string>需要允许开启麦克风才能使用录制视频和语音等服务</string>
  48 + <key>NSMotionUsageDescription</key>
  49 + <string>需要允许访问运动与健身才能在参加线上跑步赛事时记录您的步数信息</string>
  50 +
  51 + <key>NSPhotoLibraryAddUsageDescription</key>
  52 + <string></string>
  53 + <key>NSPhotoLibraryUsageDescription</key>
  54 + <string>需要允许打开相册才能访问相册照片和保存照片</string>
  55 +
31 <key>UIRequiredDeviceCapabilities</key> 56 <key>UIRequiredDeviceCapabilities</key>
32 <array> 57 <array>
33 <string>armv7</string> 58 <string>armv7</string>
Example/CNLiveImagePickerController/CNLiveViewController.m
@@ -7,8 +7,9 @@ @@ -7,8 +7,9 @@
7 // 7 //
8 8
9 #import "CNLiveViewController.h" 9 #import "CNLiveViewController.h"
  10 +#import "CNImagePickerManager.h"
10 11
11 -@interface CNLiveViewController () 12 +@interface CNLiveViewController ()<TZImagePickerControllerDelegate>
12 13
13 @end 14 @end
14 15
@@ -18,6 +19,23 @@ @@ -18,6 +19,23 @@
18 { 19 {
19 [super viewDidLoad]; 20 [super viewDidLoad];
20 // Do any additional setup after loading the view, typically from a nib. 21 // Do any additional setup after loading the view, typically from a nib.
  22 + UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
  23 + [self.view addSubview:button];
  24 + [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
  25 + button.backgroundColor = [UIColor yellowColor];
  26 + button.frame = CGRectMake(50, 50, 100, 100);
  27 + [button setTitle:@"相册" forState:UIControlStateNormal];
  28 + [button addTarget:self action:@selector(buttonAction:) forControlEvents:UIControlEventTouchUpInside];
  29 +
  30 +
  31 +}
  32 +
  33 +- (void)buttonAction:(UIButton *)sender {
  34 +
  35 + [CNImagePickerManager ImagePickerWithMaxImagesCount:9 columnNumber:4 delegate:self pushPhotoPickerVc:YES isSelectOriginalPhoto:nil selectedAssets:nil enterType:CNImagePickerEnterTypeFriendsCircle pickingPhotosHandle:^(NSArray<UIImage *> *photos, NSArray *assets, BOOL isSelectOriginalPhoto) {
  36 +
  37 + }];
  38 +
21 } 39 }
22 40
23 - (void)didReceiveMemoryWarning 41 - (void)didReceiveMemoryWarning
Example/Podfile
@@ -2,12 +2,12 @@ use_frameworks! @@ -2,12 +2,12 @@ use_frameworks!
2 source 'https://github.com/CocoaPods/Specs.git' 2 source 'https://github.com/CocoaPods/Specs.git'
3 source 'http://bj.gitlab.cnlive.com/ios-team/CNLiveRepos.git' 3 source 'http://bj.gitlab.cnlive.com/ios-team/CNLiveRepos.git'
4 4
5 -platform :ios, '8.0' 5 +platform :ios, '9.0'
6 6
7 target 'CNLiveImagePickerController_Example' do 7 target 'CNLiveImagePickerController_Example' do
8 pod 'CNLiveImagePickerController', :path => '../' 8 pod 'CNLiveImagePickerController', :path => '../'
9 9
10 - #pod 'CNLiveBaseKit' 10 +# pod 'CNLiveBaseKit'
11 11
12 target 'CNLiveImagePickerController_Tests' do 12 target 'CNLiveImagePickerController_Tests' do
13 inherit! :search_paths 13 inherit! :search_paths