Skip to content

New version! It's A Facebook style Image Picker Controller by Swift.

License

Notifications You must be signed in to change notification settings

izrie/DKImagePickerController

Repository files navigation

DKImagePickerController

Description

This is a very simple Image Picker Controller by Swift.
AssetsLibrary.framework is required.

Use

Initialization and presentation

let pickerController = DKImagePickerController()
pickerController.pickerDelegate = self
self.presentViewController(pickerController, animated: true) {}

Delegate methods

func imagePickerControllerCancelled() {
    self.dismissViewControllerAnimated(true, completion: nil)
}

func imagePickerControllerDidSelectedAssets(assets: [DKAsset]!) {
    for (index, asset) in enumerate(assets) {
        
    }
    
    self.dismissViewControllerAnimated(true, completion: nil)
}

Setup

/// The height of the bottom of the preview
var previewHeight: CGFloat = 80

var rightButtonTitle: String = "确定"

/// Displayed when denied access
var noAccessView: UIView = {

Screenshots

About

New version! It's A Facebook style Image Picker Controller by Swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 98.7%
  • Ruby 1.3%