Commit 11aa35afb92c3848d35781c5511a8494dcc57d73

Authored by daojian
1 parent f457e34b

0.0.22 版本,适配 iPhone 12 系列手机

CNLiveImagePickerController.podspec
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 8
9 Pod::Spec.new do |s| 9 Pod::Spec.new do |s|
10 s.name = 'CNLiveImagePickerController' 10 s.name = 'CNLiveImagePickerController'
11 - s.version = '0.0.21' 11 + s.version = '0.0.22'
12 s.summary = '相册' 12 s.summary = '相册'
13 13
14 # This description is used to generate tags and improve search results. 14 # This description is used to generate tags and improve search results.
@@ -28,7 +28,7 @@ Pod::Spec.new do |s| @@ -28,7 +28,7 @@ Pod::Spec.new do |s|
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 = '9.0' 31 + s.ios.deployment_target = '10.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}"
CNLiveImagePickerController/Classes/TZImagePickerController.m
@@ -921,7 +921,13 @@ @@ -921,7 +921,13 @@
921 return (CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(375, 812)) || 921 return (CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(375, 812)) ||
922 CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(812, 375)) || 922 CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(812, 375)) ||
923 CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(414, 896)) || 923 CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(414, 896)) ||
924 - CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(896, 414))); 924 + CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(896, 414)) ||
  925 + CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(360, 780)) ||
  926 + CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(780, 360)) ||
  927 + CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(390, 844)) ||
  928 + CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(844, 390)) ||
  929 + CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(428, 926)) ||
  930 + CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(926, 428)));
925 931
926 } 932 }
927 933
Example/CNLiveImagePickerController/Base.lproj/Main.storyboard
1 <?xml version="1.0" encoding="UTF-8"?> 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> 2 +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="whP-gf-Uak">
  3 + <device id="retina6_0" orientation="portrait" appearance="light"/>
6 <dependencies> 4 <dependencies>
7 <deployment identifier="iOS"/> 5 <deployment identifier="iOS"/>
8 - <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/> 6 + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
9 <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> 7 <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
10 </dependencies> 8 </dependencies>
11 <scenes> 9 <scenes>
12 - <!--View Controller--> 10 + <!--Live View Controller-->
13 <scene sceneID="wQg-tq-qST"> 11 <scene sceneID="wQg-tq-qST">
14 <objects> 12 <objects>
15 <viewController id="whP-gf-Uak" customClass="CNLiveViewController" sceneMemberID="viewController"> 13 <viewController id="whP-gf-Uak" customClass="CNLiveViewController" sceneMemberID="viewController">
@@ -18,14 +16,14 @@ @@ -18,14 +16,14 @@
18 <viewControllerLayoutGuide type="bottom" id="Mvr-aV-6Um"/> 16 <viewControllerLayoutGuide type="bottom" id="Mvr-aV-6Um"/>
19 </layoutGuides> 17 </layoutGuides>
20 <view key="view" contentMode="scaleToFill" id="TpU-gO-2f1"> 18 <view key="view" contentMode="scaleToFill" id="TpU-gO-2f1">
21 - <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> 19 + <rect key="frame" x="0.0" y="0.0" width="390" height="844"/>
22 <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> 20 <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
23 <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> 21 <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
24 </view> 22 </view>
25 </viewController> 23 </viewController>
26 <placeholder placeholderIdentifier="IBFirstResponder" id="tc2-Qw-aMS" userLabel="First Responder" sceneMemberID="firstResponder"/> 24 <placeholder placeholderIdentifier="IBFirstResponder" id="tc2-Qw-aMS" userLabel="First Responder" sceneMemberID="firstResponder"/>
27 </objects> 25 </objects>
28 - <point key="canvasLocation" x="305" y="433"/> 26 + <point key="canvasLocation" x="156" y="245"/>
29 </scene> 27 </scene>
30 </scenes> 28 </scenes>
31 </document> 29 </document>
Example/CNLiveImagePickerController/CNLiveViewController.m
@@ -159,7 +159,7 @@ @@ -159,7 +159,7 @@
159 159
160 160
161 161
162 - TZImagePickerController *imagePickerVc = [[TZImagePickerController alloc] initWithMaxImagesCount:1 delegate:self]; 162 + CNImagePickerController *imagePickerVc = [[CNImagePickerController alloc] initWithMaxImagesCount:9 delegate:self];
163 imagePickerVc.modalPresentationStyle = UIModalPresentationFullScreen; 163 imagePickerVc.modalPresentationStyle = UIModalPresentationFullScreen;
164 imagePickerVc.allowTakePicture = NO; // 在内部显示拍照按钮 164 imagePickerVc.allowTakePicture = NO; // 在内部显示拍照按钮
165 imagePickerVc.allowPreview = NO; 165 imagePickerVc.allowPreview = NO;
Example/Podfile
@@ -3,11 +3,16 @@ use_frameworks! @@ -3,11 +3,16 @@ use_frameworks!
3 source 'http://bj.gitlab.cnlive.com/ios-team/CNLiveRepos.git' 3 source 'http://bj.gitlab.cnlive.com/ios-team/CNLiveRepos.git'
4 source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git' 4 source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
5 5
6 -platform :ios, '9.0' 6 +platform :ios, '10.0'
7 7
8 target 'CNLiveImagePickerController_Example' do 8 target 'CNLiveImagePickerController_Example' do
9 pod 'CNLiveImagePickerController', :path => '../' 9 pod 'CNLiveImagePickerController', :path => '../'
10 10
  11 +# pod 'CNLiveTripartiteManagement/SDAutoLayout'
  12 +# pod 'CNLiveTripartiteManagement/QMUIKit'
  13 +# pod 'CNLiveBaseKit'
  14 +# pod 'CNLiveUploadManager'
  15 +# pod 'CNLiveBusinessTools'
11 #依赖三方私有库,如果里面有.a的时候加上这个 16 #依赖三方私有库,如果里面有.a的时候加上这个
12 pre_install do |installer| Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {} 17 pre_install do |installer| Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
13 end 18 end