IQMediaPickerController icon indicating copy to clipboard operation
IQMediaPickerController copied to clipboard

icons are not Visible: Xcode 9/ swift 3

Open MahipalV12 opened this issue 7 years ago • 3 comments

Hii , i have install framework through pod install(pod "IQMediaPickerController") . app is build successfully and run but the IQMediaPickerController not showing assest icons of flash/front/rear camera icons etc, though these button are clickable. screenshot

//presenting PhotoCamera
let mediaPickerGallery = IQMediaPickerController()
         mediaPickerGallery.delegate = self
        mediaPickerGallery.captureDevice = IQMediaPickerControllerCameraDevice.rear
        var qualityArr = [NSNumber]()
        qualityArr.append(NSNumber(value: IQMediaPickerControllerQualityType.typeHigh.rawValue))
        qualityArr.append(NSNumber(value: IQMediaPickerControllerQualityType.type1920x1080.rawValue))
        mediaPickerGallery.allowedVideoQualities = qualityArr
        mediaPickerGallery.allowsPickingMultipleItems = true
        mediaPickerGallery.maximumItemCount = 10
  mediaPickerGallery.sourceType = IQMediaPickerControllerSourceType.cameraMicrophone
        var mediaTypesArr = [NSNumber]()
        mediaTypesArr.append(NSNumber(value: IQMediaPickerControllerMediaType.photo.rawValue))
        mediaPickerGallery.mediaTypes = mediaTypesArr
        self.present(mediaPickerGallery, animated: true, completion: nil)

And "info" is also returing null even i select any media.

func mediaPickerController(_ controller: IQMediaPickerController, didFinishMediaWithInfo info: [AnyHashable : Any]) {
        NIDebug.printLogArg(value: "Info: %@",info)
        
    }

is there anything i missed ? please help in this

MahipalV12 avatar Jan 09 '18 12:01 MahipalV12

same issue :(

vfa-nhannv avatar May 13 '18 07:05 vfa-nhannv

+1

VickyPrajapati24 avatar Jul 16 '18 10:07 VickyPrajapati24

i am not able to find actual problem but i resolved it by adding all icons from IQMediaPickerController/IQMediaCaptureController/IQMediaCaptureController.xcassets to default assets of my project.

VickyPrajapati24 avatar Jul 16 '18 13:07 VickyPrajapati24