DKImagePickerController
DKImagePickerController copied to clipboard
limiting selection for 3 images and 1 video
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.
@zhangao0086 do you have any solution for this problem? Thanks in advance!
Hi @murad1981 @SagarUnagar
There is an alternative way:
- Make a subclass of
DKAssetGroupDetailVCthen override thecollectionView:shouldSelectItemAt:function. - Make a subclass of
DKImagePickerControllerthen return the custom subclass ofDKAssetGroupDetailVCin themakeRootVCfunction.
"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