|
|
@@ -33,7 +33,7 @@
|
|
|
@property (strong, nonatomic) uploadFileBottomView *uploadFileBottomV;
|
|
|
|
|
|
//最多选择项
|
|
|
-@property (nonatomic, assign) NSInteger maximumNumberOfSelection;
|
|
|
+//@property (nonatomic, assign) NSInteger maximumNumberOfSelection;
|
|
|
|
|
|
//最少选择项
|
|
|
@property (nonatomic, assign) NSInteger minimumNumberOfSelection;
|
|
|
@@ -60,7 +60,7 @@
|
|
|
[self initBaselUIFun];
|
|
|
|
|
|
_isNotAllowed = YES;
|
|
|
- _maximumNumberOfSelection = 30;
|
|
|
+ //_maximumNumberOfSelection = 3;
|
|
|
_minimumNumberOfSelection = 0;
|
|
|
_multipleSelection = YES;
|
|
|
|
|
|
@@ -453,7 +453,7 @@
|
|
|
vc.assets = _assets;
|
|
|
vc.currentIndex = indexPath.row;
|
|
|
vc.indexPathsForSelectedItems = _indexPathsForSelectedItems;
|
|
|
- vc.maximumNumberOfSelection = _maximumNumberOfSelection;
|
|
|
+ //vc.maximumNumberOfSelection = _maximumNumberOfSelection;
|
|
|
vc.minimumNumberOfSelection = _minimumNumberOfSelection;
|
|
|
vc.availableStorage = self.uploadFileBottomV.availableStorage;
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|
|
|
@@ -486,9 +486,9 @@
|
|
|
TZAssetModel *model = self.assets[indexPath.row];
|
|
|
|
|
|
//超出最大限制
|
|
|
- if (self.indexPathsForSelectedItems.count >= self.maximumNumberOfSelection ) {
|
|
|
- return;
|
|
|
- }
|
|
|
+// if (self.indexPathsForSelectedItems.count >= self.maximumNumberOfSelection ) {
|
|
|
+// return;
|
|
|
+// }
|
|
|
|
|
|
//取消选中
|
|
|
if ([self.indexPathsForSelectedItems containsObject:model]) {
|