You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to an app like twitter I would like to only allow users to upload one video however they can select multiple images and upload them. I don't know how to do this though since there is only maximum and minimum selection for all assets.
The text was updated successfully, but these errors were encountered:
You can do this by delegate the method func assetsPicker(controller: AssetsPickerViewController, shouldSelect asset: PHAsset, at indexPath: IndexPath) -> Bool to achieve this.
Look like this:
func assetsPicker(controller:AssetsPickerViewController, shouldSelect asset:PHAsset, at indexPath:IndexPath)->Bool{if controller.selectedAssets.count >=1{returnfalse}returntrue}
Similar to an app like twitter I would like to only allow users to upload one video however they can select multiple images and upload them. I don't know how to do this though since there is only maximum and minimum selection for all assets.
The text was updated successfully, but these errors were encountered: