Przeglądaj źródła

1. 增加example
2. TZImageManager 类增加取原图的时候可选缩放方法

zhongbaojian 5 lat temu
rodzic
commit
89db460bdb

+ 445 - 0
Example/TZImagePicker/TZImagePicker.xcodeproj/project.pbxproj

@@ -0,0 +1,445 @@
+// !$*UTF8*$!
+{
+	archiveVersion = 1;
+	classes = {
+	};
+	objectVersion = 50;
+	objects = {
+
+/* Begin PBXBuildFile section */
+		A8EC9966238CD3BF008B0FDC /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC9965238CD3BF008B0FDC /* AppDelegate.m */; };
+		A8EC996C238CD3BF008B0FDC /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC996B238CD3BF008B0FDC /* ViewController.m */; };
+		A8EC996F238CD3BF008B0FDC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A8EC996D238CD3BF008B0FDC /* Main.storyboard */; };
+		A8EC9971238CD3C0008B0FDC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A8EC9970238CD3C0008B0FDC /* Assets.xcassets */; };
+		A8EC9974238CD3C0008B0FDC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A8EC9972238CD3C0008B0FDC /* LaunchScreen.storyboard */; };
+		A8EC9977238CD3C1008B0FDC /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC9976238CD3C1008B0FDC /* main.m */; };
+		A8EC999E238CD447008B0FDC /* TZImageCropManager.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC9980238CD446008B0FDC /* TZImageCropManager.m */; };
+		A8EC999F238CD447008B0FDC /* TZAssetCell.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC9982238CD446008B0FDC /* TZAssetCell.m */; };
+		A8EC99A0238CD447008B0FDC /* TZVideoPlayerController.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC9983238CD446008B0FDC /* TZVideoPlayerController.m */; };
+		A8EC99A1238CD447008B0FDC /* TZAssetModel.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC9984238CD446008B0FDC /* TZAssetModel.m */; };
+		A8EC99A2238CD447008B0FDC /* NSBundle+TZImagePicker.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC9985238CD446008B0FDC /* NSBundle+TZImagePicker.m */; };
+		A8EC99A3238CD447008B0FDC /* UIView+Layout.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC9988238CD446008B0FDC /* UIView+Layout.m */; };
+		A8EC99A4238CD447008B0FDC /* TZPhotoPreviewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC9989238CD446008B0FDC /* TZPhotoPreviewController.m */; };
+		A8EC99A5238CD447008B0FDC /* TZImagePickerController.bundle in Resources */ = {isa = PBXBuildFile; fileRef = A8EC998A238CD446008B0FDC /* TZImagePickerController.bundle */; };
+		A8EC99A6238CD447008B0FDC /* TZProgressView.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC998B238CD446008B0FDC /* TZProgressView.m */; };
+		A8EC99A7238CD447008B0FDC /* TZImageManager.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC998F238CD446008B0FDC /* TZImageManager.m */; };
+		A8EC99A8238CD447008B0FDC /* TZPhotoPickerController.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC9991238CD446008B0FDC /* TZPhotoPickerController.m */; };
+		A8EC99A9238CD447008B0FDC /* TZPhotoPreviewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC9992238CD446008B0FDC /* TZPhotoPreviewCell.m */; };
+		A8EC99AA238CD447008B0FDC /* TZImagePickerController.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC9999238CD446008B0FDC /* TZImagePickerController.m */; };
+		A8EC99AB238CD447008B0FDC /* TZLocationManager.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC999A238CD446008B0FDC /* TZLocationManager.m */; };
+		A8EC99AC238CD447008B0FDC /* TZGifPhotoPreviewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC999B238CD446008B0FDC /* TZGifPhotoPreviewController.m */; };
+		A8EC99AD238CD447008B0FDC /* TZImageRequestOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = A8EC999C238CD446008B0FDC /* TZImageRequestOperation.m */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+		A8EC9961238CD3BF008B0FDC /* TZImagePicker.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TZImagePicker.app; sourceTree = BUILT_PRODUCTS_DIR; };
+		A8EC9964238CD3BF008B0FDC /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
+		A8EC9965238CD3BF008B0FDC /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
+		A8EC996A238CD3BF008B0FDC /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
+		A8EC996B238CD3BF008B0FDC /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
+		A8EC996E238CD3BF008B0FDC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
+		A8EC9970238CD3C0008B0FDC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+		A8EC9973238CD3C0008B0FDC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
+		A8EC9975238CD3C1008B0FDC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+		A8EC9976238CD3C1008B0FDC /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+		A8EC997E238CD446008B0FDC /* TZPhotoPreviewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TZPhotoPreviewCell.h; sourceTree = "<group>"; };
+		A8EC997F238CD446008B0FDC /* TZPhotoPickerController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TZPhotoPickerController.h; sourceTree = "<group>"; };
+		A8EC9980238CD446008B0FDC /* TZImageCropManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TZImageCropManager.m; sourceTree = "<group>"; };
+		A8EC9981238CD446008B0FDC /* TZImageManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TZImageManager.h; sourceTree = "<group>"; };
+		A8EC9982238CD446008B0FDC /* TZAssetCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TZAssetCell.m; sourceTree = "<group>"; };
+		A8EC9983238CD446008B0FDC /* TZVideoPlayerController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TZVideoPlayerController.m; sourceTree = "<group>"; };
+		A8EC9984238CD446008B0FDC /* TZAssetModel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TZAssetModel.m; sourceTree = "<group>"; };
+		A8EC9985238CD446008B0FDC /* NSBundle+TZImagePicker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSBundle+TZImagePicker.m"; sourceTree = "<group>"; };
+		A8EC9986238CD446008B0FDC /* TZLocationManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TZLocationManager.h; sourceTree = "<group>"; };
+		A8EC9987238CD446008B0FDC /* TZImagePickerController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TZImagePickerController.h; sourceTree = "<group>"; };
+		A8EC9988238CD446008B0FDC /* UIView+Layout.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+Layout.m"; sourceTree = "<group>"; };
+		A8EC9989238CD446008B0FDC /* TZPhotoPreviewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TZPhotoPreviewController.m; sourceTree = "<group>"; };
+		A8EC998A238CD446008B0FDC /* TZImagePickerController.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = TZImagePickerController.bundle; sourceTree = "<group>"; };
+		A8EC998B238CD446008B0FDC /* TZProgressView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TZProgressView.m; sourceTree = "<group>"; };
+		A8EC998C238CD446008B0FDC /* TZGifPhotoPreviewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TZGifPhotoPreviewController.h; sourceTree = "<group>"; };
+		A8EC998D238CD446008B0FDC /* TZImageRequestOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TZImageRequestOperation.h; sourceTree = "<group>"; };
+		A8EC998E238CD446008B0FDC /* TZAssetCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TZAssetCell.h; sourceTree = "<group>"; };
+		A8EC998F238CD446008B0FDC /* TZImageManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TZImageManager.m; sourceTree = "<group>"; };
+		A8EC9990238CD446008B0FDC /* TZImageCropManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TZImageCropManager.h; sourceTree = "<group>"; };
+		A8EC9991238CD446008B0FDC /* TZPhotoPickerController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TZPhotoPickerController.m; sourceTree = "<group>"; };
+		A8EC9992238CD446008B0FDC /* TZPhotoPreviewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TZPhotoPreviewCell.m; sourceTree = "<group>"; };
+		A8EC9993238CD446008B0FDC /* TZImagePicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TZImagePicker.h; sourceTree = "<group>"; };
+		A8EC9994238CD446008B0FDC /* NSBundle+TZImagePicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSBundle+TZImagePicker.h"; sourceTree = "<group>"; };
+		A8EC9995238CD446008B0FDC /* TZAssetModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TZAssetModel.h; sourceTree = "<group>"; };
+		A8EC9996238CD446008B0FDC /* TZVideoPlayerController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TZVideoPlayerController.h; sourceTree = "<group>"; };
+		A8EC9997238CD446008B0FDC /* TZPhotoPreviewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TZPhotoPreviewController.h; sourceTree = "<group>"; };
+		A8EC9998238CD446008B0FDC /* UIView+Layout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+Layout.h"; sourceTree = "<group>"; };
+		A8EC9999238CD446008B0FDC /* TZImagePickerController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TZImagePickerController.m; sourceTree = "<group>"; };
+		A8EC999A238CD446008B0FDC /* TZLocationManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TZLocationManager.m; sourceTree = "<group>"; };
+		A8EC999B238CD446008B0FDC /* TZGifPhotoPreviewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TZGifPhotoPreviewController.m; sourceTree = "<group>"; };
+		A8EC999C238CD446008B0FDC /* TZImageRequestOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TZImageRequestOperation.m; sourceTree = "<group>"; };
+		A8EC999D238CD446008B0FDC /* TZProgressView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TZProgressView.h; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+		A8EC995E238CD3BF008B0FDC /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+		A8EC9958238CD3BF008B0FDC = {
+			isa = PBXGroup;
+			children = (
+				A8EC9963238CD3BF008B0FDC /* TZImagePicker */,
+				A8EC9962238CD3BF008B0FDC /* Products */,
+			);
+			sourceTree = "<group>";
+		};
+		A8EC9962238CD3BF008B0FDC /* Products */ = {
+			isa = PBXGroup;
+			children = (
+				A8EC9961238CD3BF008B0FDC /* TZImagePicker.app */,
+			);
+			name = Products;
+			sourceTree = "<group>";
+		};
+		A8EC9963238CD3BF008B0FDC /* TZImagePicker */ = {
+			isa = PBXGroup;
+			children = (
+				A8EC997D238CD446008B0FDC /* TZImagePickerController */,
+				A8EC9964238CD3BF008B0FDC /* AppDelegate.h */,
+				A8EC9965238CD3BF008B0FDC /* AppDelegate.m */,
+				A8EC996A238CD3BF008B0FDC /* ViewController.h */,
+				A8EC996B238CD3BF008B0FDC /* ViewController.m */,
+				A8EC996D238CD3BF008B0FDC /* Main.storyboard */,
+				A8EC9970238CD3C0008B0FDC /* Assets.xcassets */,
+				A8EC9972238CD3C0008B0FDC /* LaunchScreen.storyboard */,
+				A8EC9975238CD3C1008B0FDC /* Info.plist */,
+				A8EC9976238CD3C1008B0FDC /* main.m */,
+			);
+			path = TZImagePicker;
+			sourceTree = "<group>";
+		};
+		A8EC997D238CD446008B0FDC /* TZImagePickerController */ = {
+			isa = PBXGroup;
+			children = (
+				A8EC9994238CD446008B0FDC /* NSBundle+TZImagePicker.h */,
+				A8EC9985238CD446008B0FDC /* NSBundle+TZImagePicker.m */,
+				A8EC998E238CD446008B0FDC /* TZAssetCell.h */,
+				A8EC9982238CD446008B0FDC /* TZAssetCell.m */,
+				A8EC9995238CD446008B0FDC /* TZAssetModel.h */,
+				A8EC9984238CD446008B0FDC /* TZAssetModel.m */,
+				A8EC998C238CD446008B0FDC /* TZGifPhotoPreviewController.h */,
+				A8EC999B238CD446008B0FDC /* TZGifPhotoPreviewController.m */,
+				A8EC9990238CD446008B0FDC /* TZImageCropManager.h */,
+				A8EC9980238CD446008B0FDC /* TZImageCropManager.m */,
+				A8EC9981238CD446008B0FDC /* TZImageManager.h */,
+				A8EC998F238CD446008B0FDC /* TZImageManager.m */,
+				A8EC9993238CD446008B0FDC /* TZImagePicker.h */,
+				A8EC998A238CD446008B0FDC /* TZImagePickerController.bundle */,
+				A8EC9987238CD446008B0FDC /* TZImagePickerController.h */,
+				A8EC9999238CD446008B0FDC /* TZImagePickerController.m */,
+				A8EC998D238CD446008B0FDC /* TZImageRequestOperation.h */,
+				A8EC999C238CD446008B0FDC /* TZImageRequestOperation.m */,
+				A8EC9986238CD446008B0FDC /* TZLocationManager.h */,
+				A8EC999A238CD446008B0FDC /* TZLocationManager.m */,
+				A8EC997F238CD446008B0FDC /* TZPhotoPickerController.h */,
+				A8EC9991238CD446008B0FDC /* TZPhotoPickerController.m */,
+				A8EC997E238CD446008B0FDC /* TZPhotoPreviewCell.h */,
+				A8EC9992238CD446008B0FDC /* TZPhotoPreviewCell.m */,
+				A8EC9997238CD446008B0FDC /* TZPhotoPreviewController.h */,
+				A8EC9989238CD446008B0FDC /* TZPhotoPreviewController.m */,
+				A8EC999D238CD446008B0FDC /* TZProgressView.h */,
+				A8EC998B238CD446008B0FDC /* TZProgressView.m */,
+				A8EC9996238CD446008B0FDC /* TZVideoPlayerController.h */,
+				A8EC9983238CD446008B0FDC /* TZVideoPlayerController.m */,
+				A8EC9998238CD446008B0FDC /* UIView+Layout.h */,
+				A8EC9988238CD446008B0FDC /* UIView+Layout.m */,
+			);
+			name = TZImagePickerController;
+			path = ../../../TZImagePickerController;
+			sourceTree = "<group>";
+		};
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+		A8EC9960238CD3BF008B0FDC /* TZImagePicker */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = A8EC997A238CD3C1008B0FDC /* Build configuration list for PBXNativeTarget "TZImagePicker" */;
+			buildPhases = (
+				A8EC995D238CD3BF008B0FDC /* Sources */,
+				A8EC995E238CD3BF008B0FDC /* Frameworks */,
+				A8EC995F238CD3BF008B0FDC /* Resources */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+			);
+			name = TZImagePicker;
+			productName = TZImagePicker;
+			productReference = A8EC9961238CD3BF008B0FDC /* TZImagePicker.app */;
+			productType = "com.apple.product-type.application";
+		};
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+		A8EC9959238CD3BF008B0FDC /* Project object */ = {
+			isa = PBXProject;
+			attributes = {
+				LastUpgradeCheck = 1120;
+				ORGANIZATIONNAME = zhongbaojian;
+				TargetAttributes = {
+					A8EC9960238CD3BF008B0FDC = {
+						CreatedOnToolsVersion = 11.2.1;
+					};
+				};
+			};
+			buildConfigurationList = A8EC995C238CD3BF008B0FDC /* Build configuration list for PBXProject "TZImagePicker" */;
+			compatibilityVersion = "Xcode 9.3";
+			developmentRegion = en;
+			hasScannedForEncodings = 0;
+			knownRegions = (
+				en,
+				Base,
+			);
+			mainGroup = A8EC9958238CD3BF008B0FDC;
+			productRefGroup = A8EC9962238CD3BF008B0FDC /* Products */;
+			projectDirPath = "";
+			projectRoot = "";
+			targets = (
+				A8EC9960238CD3BF008B0FDC /* TZImagePicker */,
+			);
+		};
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+		A8EC995F238CD3BF008B0FDC /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				A8EC9974238CD3C0008B0FDC /* LaunchScreen.storyboard in Resources */,
+				A8EC99A5238CD447008B0FDC /* TZImagePickerController.bundle in Resources */,
+				A8EC9971238CD3C0008B0FDC /* Assets.xcassets in Resources */,
+				A8EC996F238CD3BF008B0FDC /* Main.storyboard in Resources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+		A8EC995D238CD3BF008B0FDC /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				A8EC99AB238CD447008B0FDC /* TZLocationManager.m in Sources */,
+				A8EC99A2238CD447008B0FDC /* NSBundle+TZImagePicker.m in Sources */,
+				A8EC996C238CD3BF008B0FDC /* ViewController.m in Sources */,
+				A8EC999F238CD447008B0FDC /* TZAssetCell.m in Sources */,
+				A8EC99A4238CD447008B0FDC /* TZPhotoPreviewController.m in Sources */,
+				A8EC99AA238CD447008B0FDC /* TZImagePickerController.m in Sources */,
+				A8EC99A6238CD447008B0FDC /* TZProgressView.m in Sources */,
+				A8EC99AC238CD447008B0FDC /* TZGifPhotoPreviewController.m in Sources */,
+				A8EC99A0238CD447008B0FDC /* TZVideoPlayerController.m in Sources */,
+				A8EC99A1238CD447008B0FDC /* TZAssetModel.m in Sources */,
+				A8EC99A9238CD447008B0FDC /* TZPhotoPreviewCell.m in Sources */,
+				A8EC99A7238CD447008B0FDC /* TZImageManager.m in Sources */,
+				A8EC99A3238CD447008B0FDC /* UIView+Layout.m in Sources */,
+				A8EC9966238CD3BF008B0FDC /* AppDelegate.m in Sources */,
+				A8EC99A8238CD447008B0FDC /* TZPhotoPickerController.m in Sources */,
+				A8EC99AD238CD447008B0FDC /* TZImageRequestOperation.m in Sources */,
+				A8EC9977238CD3C1008B0FDC /* main.m in Sources */,
+				A8EC999E238CD447008B0FDC /* TZImageCropManager.m in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+		A8EC996D238CD3BF008B0FDC /* Main.storyboard */ = {
+			isa = PBXVariantGroup;
+			children = (
+				A8EC996E238CD3BF008B0FDC /* Base */,
+			);
+			name = Main.storyboard;
+			sourceTree = "<group>";
+		};
+		A8EC9972238CD3C0008B0FDC /* LaunchScreen.storyboard */ = {
+			isa = PBXVariantGroup;
+			children = (
+				A8EC9973238CD3C0008B0FDC /* Base */,
+			);
+			name = LaunchScreen.storyboard;
+			sourceTree = "<group>";
+		};
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+		A8EC9978238CD3C1008B0FDC /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+				CLANG_CXX_LIBRARY = "libc++";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_ENABLE_OBJC_WEAK = YES;
+				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_COMMA = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INFINITE_RECURSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+				CLANG_WARN_STRICT_PROTOTYPES = YES;
+				CLANG_WARN_SUSPICIOUS_MOVE = YES;
+				CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = dwarf;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				ENABLE_TESTABILITY = YES;
+				GCC_C_LANGUAGE_STANDARD = gnu11;
+				GCC_DYNAMIC_NO_PIC = NO;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_OPTIMIZATION_LEVEL = 0;
+				GCC_PREPROCESSOR_DEFINITIONS = (
+					"DEBUG=1",
+					"$(inherited)",
+				);
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				IPHONEOS_DEPLOYMENT_TARGET = 13.2;
+				MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
+				MTL_FAST_MATH = YES;
+				ONLY_ACTIVE_ARCH = YES;
+				SDKROOT = iphoneos;
+			};
+			name = Debug;
+		};
+		A8EC9979238CD3C1008B0FDC /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ALWAYS_SEARCH_USER_PATHS = NO;
+				CLANG_ANALYZER_NONNULL = YES;
+				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+				CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
+				CLANG_CXX_LIBRARY = "libc++";
+				CLANG_ENABLE_MODULES = YES;
+				CLANG_ENABLE_OBJC_ARC = YES;
+				CLANG_ENABLE_OBJC_WEAK = YES;
+				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+				CLANG_WARN_BOOL_CONVERSION = YES;
+				CLANG_WARN_COMMA = YES;
+				CLANG_WARN_CONSTANT_CONVERSION = YES;
+				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+				CLANG_WARN_EMPTY_BODY = YES;
+				CLANG_WARN_ENUM_CONVERSION = YES;
+				CLANG_WARN_INFINITE_RECURSION = YES;
+				CLANG_WARN_INT_CONVERSION = YES;
+				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+				CLANG_WARN_STRICT_PROTOTYPES = YES;
+				CLANG_WARN_SUSPICIOUS_MOVE = YES;
+				CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
+				CLANG_WARN_UNREACHABLE_CODE = YES;
+				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+				COPY_PHASE_STRIP = NO;
+				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+				ENABLE_NS_ASSERTIONS = NO;
+				ENABLE_STRICT_OBJC_MSGSEND = YES;
+				GCC_C_LANGUAGE_STANDARD = gnu11;
+				GCC_NO_COMMON_BLOCKS = YES;
+				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+				GCC_WARN_UNDECLARED_SELECTOR = YES;
+				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+				GCC_WARN_UNUSED_FUNCTION = YES;
+				GCC_WARN_UNUSED_VARIABLE = YES;
+				IPHONEOS_DEPLOYMENT_TARGET = 13.2;
+				MTL_ENABLE_DEBUG_INFO = NO;
+				MTL_FAST_MATH = YES;
+				SDKROOT = iphoneos;
+				VALIDATE_PRODUCT = YES;
+			};
+			name = Release;
+		};
+		A8EC997B238CD3C1008B0FDC /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				CODE_SIGN_STYLE = Automatic;
+				INFOPLIST_FILE = TZImagePicker/Info.plist;
+				IPHONEOS_DEPLOYMENT_TARGET = 9.0;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.ouj.TZImagePicker;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				TARGETED_DEVICE_FAMILY = "1,2";
+			};
+			name = Debug;
+		};
+		A8EC997C238CD3C1008B0FDC /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+				CODE_SIGN_STYLE = Automatic;
+				INFOPLIST_FILE = TZImagePicker/Info.plist;
+				IPHONEOS_DEPLOYMENT_TARGET = 9.0;
+				LD_RUNPATH_SEARCH_PATHS = (
+					"$(inherited)",
+					"@executable_path/Frameworks",
+				);
+				PRODUCT_BUNDLE_IDENTIFIER = com.ouj.TZImagePicker;
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				TARGETED_DEVICE_FAMILY = "1,2";
+			};
+			name = Release;
+		};
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+		A8EC995C238CD3BF008B0FDC /* Build configuration list for PBXProject "TZImagePicker" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				A8EC9978238CD3C1008B0FDC /* Debug */,
+				A8EC9979238CD3C1008B0FDC /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+		A8EC997A238CD3C1008B0FDC /* Build configuration list for PBXNativeTarget "TZImagePicker" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				A8EC997B238CD3C1008B0FDC /* Debug */,
+				A8EC997C238CD3C1008B0FDC /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+/* End XCConfigurationList section */
+	};
+	rootObject = A8EC9959238CD3BF008B0FDC /* Project object */;
+}

+ 7 - 0
Example/TZImagePicker/TZImagePicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+   version = "1.0">
+   <FileRef
+      location = "self:TZImagePicker.xcodeproj">
+   </FileRef>
+</Workspace>

+ 8 - 0
Example/TZImagePicker/TZImagePicker.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>IDEDidComputeMac32BitWarning</key>
+	<true/>
+</dict>
+</plist>

BIN
Example/TZImagePicker/TZImagePicker.xcodeproj/project.xcworkspace/xcuserdata/duowan.xcuserdatad/UserInterfaceState.xcuserstate


+ 14 - 0
Example/TZImagePicker/TZImagePicker.xcodeproj/xcuserdata/duowan.xcuserdatad/xcschemes/xcschememanagement.plist

@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>SchemeUserState</key>
+	<dict>
+		<key>TZImagePicker.xcscheme_^#shared#^_</key>
+		<dict>
+			<key>orderHint</key>
+			<integer>0</integer>
+		</dict>
+	</dict>
+</dict>
+</plist>

+ 16 - 0
Example/TZImagePicker/TZImagePicker/AppDelegate.h

@@ -0,0 +1,16 @@
+//
+//  AppDelegate.h
+//  TZImagePicker
+//
+//  Created by zhongbaojian on 2019/11/26.
+//  Copyright © 2019 zhongbaojian. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface AppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (nonatomic, strong) UIWindow *window;
+
+@end
+

+ 25 - 0
Example/TZImagePicker/TZImagePicker/AppDelegate.m

@@ -0,0 +1,25 @@
+//
+//  AppDelegate.m
+//  TZImagePicker
+//
+//  Created by zhongbaojian on 2019/11/26.
+//  Copyright © 2019 zhongbaojian. All rights reserved.
+//
+
+#import "AppDelegate.h"
+
+@interface AppDelegate ()
+
+@end
+
+@implementation AppDelegate
+
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+    // Override point for customization after application launch.
+    return YES;
+}
+
+
+
+@end

+ 98 - 0
Example/TZImagePicker/TZImagePicker/Assets.xcassets/AppIcon.appiconset/Contents.json

@@ -0,0 +1,98 @@
+{
+  "images" : [
+    {
+      "idiom" : "iphone",
+      "size" : "20x20",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "iphone",
+      "size" : "20x20",
+      "scale" : "3x"
+    },
+    {
+      "idiom" : "iphone",
+      "size" : "29x29",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "iphone",
+      "size" : "29x29",
+      "scale" : "3x"
+    },
+    {
+      "idiom" : "iphone",
+      "size" : "40x40",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "iphone",
+      "size" : "40x40",
+      "scale" : "3x"
+    },
+    {
+      "idiom" : "iphone",
+      "size" : "60x60",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "iphone",
+      "size" : "60x60",
+      "scale" : "3x"
+    },
+    {
+      "idiom" : "ipad",
+      "size" : "20x20",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "ipad",
+      "size" : "20x20",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "ipad",
+      "size" : "29x29",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "ipad",
+      "size" : "29x29",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "ipad",
+      "size" : "40x40",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "ipad",
+      "size" : "40x40",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "ipad",
+      "size" : "76x76",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "ipad",
+      "size" : "76x76",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "ipad",
+      "size" : "83.5x83.5",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "ios-marketing",
+      "size" : "1024x1024",
+      "scale" : "1x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

+ 6 - 0
Example/TZImagePicker/TZImagePicker/Assets.xcassets/Contents.json

@@ -0,0 +1,6 @@
+{
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

+ 25 - 0
Example/TZImagePicker/TZImagePicker/Base.lproj/LaunchScreen.storyboard

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
+    <dependencies>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
+        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
+    </dependencies>
+    <scenes>
+        <!--View Controller-->
+        <scene sceneID="EHf-IW-A2E">
+            <objects>
+                <viewController id="01J-lp-oVM" sceneMemberID="viewController">
+                    <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
+                        <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                        <color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
+                        <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
+                    </view>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
+            </objects>
+            <point key="canvasLocation" x="53" y="375"/>
+        </scene>
+    </scenes>
+</document>

+ 24 - 0
Example/TZImagePicker/TZImagePicker/Base.lproj/Main.storyboard

@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
+    <dependencies>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
+        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
+        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
+    </dependencies>
+    <scenes>
+        <!--View Controller-->
+        <scene sceneID="tne-QT-ifu">
+            <objects>
+                <viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="" sceneMemberID="viewController">
+                    <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
+                        <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                        <color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
+                        <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
+                    </view>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
+            </objects>
+        </scene>
+    </scenes>
+</document>

+ 45 - 0
Example/TZImagePicker/TZImagePicker/Info.plist

@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+	<key>CFBundleDevelopmentRegion</key>
+	<string>$(DEVELOPMENT_LANGUAGE)</string>
+	<key>CFBundleExecutable</key>
+	<string>$(EXECUTABLE_NAME)</string>
+	<key>CFBundleIdentifier</key>
+	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+	<key>CFBundleInfoDictionaryVersion</key>
+	<string>6.0</string>
+	<key>CFBundleName</key>
+	<string>$(PRODUCT_NAME)</string>
+	<key>CFBundlePackageType</key>
+	<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
+	<key>CFBundleShortVersionString</key>
+	<string>1.0</string>
+	<key>CFBundleVersion</key>
+	<string>1</string>
+	<key>LSRequiresIPhoneOS</key>
+	<true/>
+	<key>UILaunchStoryboardName</key>
+	<string>LaunchScreen</string>
+	<key>UIMainStoryboardFile</key>
+	<string>Main</string>
+	<key>UIRequiredDeviceCapabilities</key>
+	<array>
+		<string>armv7</string>
+	</array>
+	<key>UISupportedInterfaceOrientations</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationLandscapeLeft</string>
+		<string>UIInterfaceOrientationLandscapeRight</string>
+	</array>
+	<key>UISupportedInterfaceOrientations~ipad</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
+		<string>UIInterfaceOrientationLandscapeLeft</string>
+		<string>UIInterfaceOrientationLandscapeRight</string>
+	</array>
+</dict>
+</plist>

+ 15 - 0
Example/TZImagePicker/TZImagePicker/ViewController.h

@@ -0,0 +1,15 @@
+//
+//  ViewController.h
+//  TZImagePicker
+//
+//  Created by zhongbaojian on 2019/11/26.
+//  Copyright © 2019 zhongbaojian. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface ViewController : UIViewController
+
+
+@end
+

+ 23 - 0
Example/TZImagePicker/TZImagePicker/ViewController.m

@@ -0,0 +1,23 @@
+//
+//  ViewController.m
+//  TZImagePicker
+//
+//  Created by zhongbaojian on 2019/11/26.
+//  Copyright © 2019 zhongbaojian. All rights reserved.
+//
+
+#import "ViewController.h"
+
+@interface ViewController ()
+
+@end
+
+@implementation ViewController
+
+- (void)viewDidLoad {
+    [super viewDidLoad];
+    // Do any additional setup after loading the view.
+}
+
+
+@end

+ 19 - 0
Example/TZImagePicker/TZImagePicker/main.m

@@ -0,0 +1,19 @@
+//
+//  main.m
+//  TZImagePicker
+//
+//  Created by zhongbaojian on 2019/11/26.
+//  Copyright © 2019 zhongbaojian. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import "AppDelegate.h"
+
+int main(int argc, char * argv[]) {
+    NSString * appDelegateClassName;
+    @autoreleasepool {
+        // Setup code that might create autoreleased objects goes here.
+        appDelegateClassName = NSStringFromClass([AppDelegate class]);
+    }
+    return UIApplicationMain(argc, argv, nil, appDelegateClassName);
+}

+ 3 - 0
TZImagePickerController/TZImageManager.h

@@ -70,9 +70,12 @@
 
 /// Get full Image 获取原图
 /// 如下两个方法completion一般会调多次,一般会先返回缩略图,再返回原图(详见方法内部使用的系统API的说明),如果info[PHImageResultIsDegradedKey] 为 YES,则表明当前返回的是缩略图,否则是原图。
+/// 以下3个方法取的都是原图,如果像素很高,可能出现爆内存的情况,默认大小为:PHImageManagerMaximumSize,默认缩放方式:PHImageContentModeAspectFit
 - (PHImageRequestID)getOriginalPhotoWithAsset:(PHAsset *)asset completion:(void (^)(UIImage *photo,NSDictionary *info))completion;
 - (PHImageRequestID)getOriginalPhotoWithAsset:(PHAsset *)asset newCompletion:(void (^)(UIImage *photo,NSDictionary *info,BOOL isDegraded))completion;
 - (PHImageRequestID)getOriginalPhotoWithAsset:(PHAsset *)asset progressHandler:(void (^)(double progress, NSError *error, BOOL *stop, NSDictionary *info))progressHandler newCompletion:(void (^)(UIImage *photo,NSDictionary *info,BOOL isDegraded))completion;
+/// 这个方法会对获取到的图片按给定的大小进行等比例缩放
+- (PHImageRequestID)getOriginalPhotoWithAsset:(PHAsset *)asset targetSize:(CGSize)targetSize contentMode:(PHImageContentMode)mode progressHandler:(void (^)(double progress, NSError *error, BOOL *stop, NSDictionary *info))progressHandler newCompletion:(void (^)(UIImage *photo,NSDictionary *info,BOOL isDegraded))completion;
 // 该方法中,completion只会走一次
 - (PHImageRequestID)getOriginalPhotoDataWithAsset:(PHAsset *)asset completion:(void (^)(NSData *data,NSDictionary *info,BOOL isDegraded))completion;
 - (PHImageRequestID)getOriginalPhotoDataWithAsset:(PHAsset *)asset progressHandler:(void (^)(double progress, NSError *error, BOOL *stop, NSDictionary *info))progressHandler completion:(void (^)(NSData *data,NSDictionary *info,BOOL isDegraded))completion;

+ 6 - 1
TZImagePickerController/TZImageManager.m

@@ -436,13 +436,17 @@ static dispatch_once_t onceToken;
 }
 
 - (PHImageRequestID)getOriginalPhotoWithAsset:(PHAsset *)asset progressHandler:(void (^)(double progress, NSError *error, BOOL *stop, NSDictionary *info))progressHandler newCompletion:(void (^)(UIImage *photo,NSDictionary *info,BOOL isDegraded))completion {
+    return [self getOriginalPhotoWithAsset:asset targetSize:PHImageManagerMaximumSize contentMode:PHImageContentModeAspectFit progressHandler:progressHandler newCompletion:completion];
+}
+
+- (PHImageRequestID)getOriginalPhotoWithAsset:(PHAsset *)asset targetSize:(CGSize)targetSize contentMode:(PHImageContentMode)mode progressHandler:(void (^)(double progress, NSError *error, BOOL *stop, NSDictionary *info))progressHandler newCompletion:(void (^)(UIImage *photo,NSDictionary *info,BOOL isDegraded))completion {
     PHImageRequestOptions *option = [[PHImageRequestOptions alloc]init];
     option.networkAccessAllowed = YES;
     if (progressHandler) {
         [option setProgressHandler:progressHandler];
     }
     option.resizeMode = PHImageRequestOptionsResizeModeFast;
-    return [[PHImageManager defaultManager] requestImageForAsset:asset targetSize:PHImageManagerMaximumSize contentMode:PHImageContentModeAspectFit options:option resultHandler:^(UIImage *result, NSDictionary *info) {
+    return [[PHImageManager defaultManager] requestImageForAsset:asset targetSize:targetSize contentMode:mode options:option resultHandler:^(UIImage *result, NSDictionary *info) {
         BOOL downloadFinined = (![[info objectForKey:PHImageCancelledKey] boolValue] && ![info objectForKey:PHImageErrorKey]);
         if (downloadFinined && result) {
             result = [self fixOrientation:result];
@@ -452,6 +456,7 @@ static dispatch_once_t onceToken;
     }];
 }
 
+
 - (PHImageRequestID)getOriginalPhotoDataWithAsset:(PHAsset *)asset completion:(void (^)(NSData *data,NSDictionary *info,BOOL isDegraded))completion {
     return [self getOriginalPhotoDataWithAsset:asset progressHandler:nil completion:completion];
 }