如何从bs_presentImagePickerController中提取所选图像

时间:2016-09-02 07:49:55

标签: ios iphone swift uiimagepickercontroller

使用bs_presentImagePickerController进行多个图像选择,但无法获取如何选择所选图像。以下是代码:

bs_presentImagePickerController(vc, animated: false,
                                    select: { (asset: PHAsset) -> Void in
                                        print("Selected: \(asset)")
        }, deselect: { (asset: PHAsset) -> Void in
            print("Deselected: \(asset)")
        }, cancel: { (assets: [PHAsset]) -> Void in
            print("Cancel: \(assets)")
        }, finish: { (assets: [PHAsset]) -> Void in
            print("Finish: \(assets)")
            kAppDelegate.imageSelected = true
        }, completion:{})

请指导。

0 个答案:

没有答案