Latest 2.3.1
Homepage https://github.com/TeletronicsDotAe/TLTMediaSelector
License MIT
Platforms ios 10.0, requires ARC
Dependencies IQAudioRecorderController, SCLAlertView, RSKImageCropper
Frameworks UIKit
Authors

A popover control to select media, such as images, inspired by and adapted from FDTake https://github.com/fulldecent/FDTake
Using SCLAlertView for the visual interaction and RSKImageCropper for optional post cropping selected images.

Features

  • [x] easily customizable
  • [x] Objective-C compatible

Usage

The simplest way to use the selector is as follows:

class ViewController: UIViewController {
    let mediaSelector = MediaSelection()

    override func viewDidLoad() {
        super.viewDidLoad()

        mediaSelector.didGetPhoto = {
            (photo: UIImage, info: [NSObject : AnyObject]) -> Void in
            NSLog("did get photo")
        }
    }

    @IBAction func selectImage(sender: AnyObject) {
        mediaSelector.title = "Select Image"
        mediaSelector.subtitle = "Select your image among one of these sources"
        mediaSelector.allowsMasking = true
        mediaSelector.defaultsToFrontCamera = true
        mediaSelector.buttonBackgroundColor = UIColor.init(white: 0.8, alpha: 1.0)
        mediaSelector.present()
    }

}

License

TLTMediaSelector is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "TLTMediaSelector",
    "version": "2.3.1",
    "summary": "Popover control to select media items such as images",
    "description": "A popover control inspired by and adapted from FDTake https://github.com/fulldecent/FDTake",
    "homepage": "https://github.com/TeletronicsDotAe/TLTMediaSelector",
    "license": "MIT",
    "authors": {
        "Martin Jacob Rehder": "[email protected]"
    },
    "source": {
        "git": "https://github.com/TeletronicsDotAe/TLTMediaSelector.git",
        "tag": "2.3.1"
    },
    "platforms": {
        "ios": "10.0"
    },
    "requires_arc": true,
    "source_files": "TLTMediaSelector/**/*.swift",
    "frameworks": "UIKit",
    "dependencies": {
        "IQAudioRecorderController": [
            "1.2.0"
        ],
        "SCLAlertView": [
            "0.7.0"
        ],
        "RSKImageCropper": [
            "1.6.1"
        ]
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This