Commit 12771d12f576b133629a28eddb9adf4c2bbf149f
1 parent
d6cbabef
0.1.3添加新的照片选取类型
Showing
3 changed files
with
15 additions
and
2 deletions
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.1.2' | 11 | + s.version = '0.1.3' |
| 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. |
CNLiveImagePickerController/Classes/CNImagePickerManager.h
| @@ -25,7 +25,7 @@ typedef NS_ENUM(NSUInteger, CNImagePickerEnterType) { | @@ -25,7 +25,7 @@ typedef NS_ENUM(NSUInteger, CNImagePickerEnterType) { | ||
| 25 | CNImagePickerEnterTypeOther = 4,//其他 | 25 | CNImagePickerEnterTypeOther = 4,//其他 |
| 26 | CNImagePickerEnterTypeWitness = 5, //目击者 | 26 | CNImagePickerEnterTypeWitness = 5, //目击者 |
| 27 | CNImagePickedEnterTypeField = 6, //农业智能 | 27 | CNImagePickedEnterTypeField = 6, //农业智能 |
| 28 | - | 28 | + CNImagePickerEnterTypeFeedBack = 7,//意见反馈 |
| 29 | }; | 29 | }; |
| 30 | 30 | ||
| 31 | @interface CNImagePickerManager : NSObject | 31 | @interface CNImagePickerManager : NSObject |
CNLiveImagePickerController/Classes/CNImagePickerManager.m
| @@ -55,6 +55,15 @@ | @@ -55,6 +55,15 @@ | ||
| 55 | imagePickerVc.allowPickingVideo = NO; | 55 | imagePickerVc.allowPickingVideo = NO; |
| 56 | imagePickerVc.allowPickingGif = NO; | 56 | imagePickerVc.allowPickingGif = NO; |
| 57 | break; | 57 | break; |
| 58 | + case CNImagePickerEnterTypeFeedBack:{ | ||
| 59 | + imagePickerVc.allowPickingVideo = NO; | ||
| 60 | + imagePickerVc.allowPickingGif = NO; | ||
| 61 | + imagePickerVc.allowTakePicture = NO; | ||
| 62 | + imagePickerVc.allowTakeVideo = NO; | ||
| 63 | + imagePickerVc.showPhotoCannotSelectLayer = YES; | ||
| 64 | + imagePickerVc.allowPickingOriginalPhoto = NO; | ||
| 65 | + } | ||
| 66 | + break; | ||
| 58 | default://其他 | 67 | default://其他 |
| 59 | break; | 68 | break; |
| 60 | } | 69 | } |
| @@ -118,6 +127,10 @@ | @@ -118,6 +127,10 @@ | ||
| 118 | break; | 127 | break; |
| 119 | case CNImagePickerEnterTypeOther: | 128 | case CNImagePickerEnterTypeOther: |
| 120 | break; | 129 | break; |
| 130 | + case CNImagePickerEnterTypeFeedBack:{ | ||
| 131 | + imagePickerVc.allowPickingOriginalPhoto = NO; | ||
| 132 | + } | ||
| 133 | + break; | ||
| 121 | default://其他 | 134 | default://其他 |
| 122 | break; | 135 | break; |
| 123 | } | 136 | } |