DKImagePickerController icon indicating copy to clipboard operation
DKImagePickerController copied to clipboard

limiting selection for 3 images and 1 video

Open murad1981 opened this issue 8 years ago • 3 comments

is there a way to limit the selection depending on asset type ? for ex. I need to limit user selection to be 3 images and 1 video at maximum.

murad1981 avatar Aug 02 '17 04:08 murad1981

@zhangao0086 do you have any solution for this problem? Thanks in advance!

SagarUnagar avatar Sep 04 '17 09:09 SagarUnagar

Hi @murad1981 @SagarUnagar

There is an alternative way:

  1. Make a subclass of DKAssetGroupDetailVC then override the collectionView:shouldSelectItemAt: function.
  2. Make a subclass of DKImagePickerController then return the custom subclass of DKAssetGroupDetailVC in the makeRootVC function.

zhangao0086 avatar Sep 04 '17 12:09 zhangao0086

"Overriding non-open instance method outside of its defining module "

its giving an error while making subclass from DKAssetGroupDetailVC.

what i know is DKAssetGroupDetailVC methods are not open like DKImagePickerControllerBaseUIDelegate

shindejagdish23 avatar Aug 07 '19 08:08 shindejagdish23