johnil / JFImagePickerController

高性能多选图片库
MIT License
587 stars 77 forks source link

无法触发delegate事件 #1

Closed zhouzizi closed 9 years ago

zhouzizi commented 9 years ago
        var imagePicker = JFImagePickerController(rootViewController: self)
        imagePicker.delegate = self
        self.presentViewController(imagePicker, animated: true, completion: nil)

  func imagePickerDidFinished(picker: JFImagePickerController!) {
        picker.dismissViewControllerAnimated(true, completion: nil)
    }
    func imagePickerDidCancel(picker: JFImagePickerController!) {
        picker.dismissViewControllerAnimated(true, completion: nil)
    }

选完照片点击完成 imagePicker没有dismiss

johnil commented 9 years ago

imagePicker.delegate = self change to imagePicker.pickerDelegate = self;