Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Easily take a photo or video or choose from library
Objective-C Ruby
Failed to load latest commit information.
FDTakeExample.xcodeproj Fix ignore
FDTakeExample Fixes #49
FDTakeExampleTests Add unit tests and travis
.gitignore Fix ignore
.travis.yml update per CocoaPods
Default-568h@2x.png ImageOptim
FDTake.podspec Release v0.2.4
LICENSE Fixes #3
README.md Depend on Cocoapods

README.md

NOTICE: Development on this project is on pause until CocoaPods releases full support for Swift. Then we will work to upgrade this project. See https://github.com/CocoaPods/CocoaPods/pull/2835

FDTake

CI Status Version License Platform

FDTake helps you quickly have the user take or choose an existing photo or video.

screenshot

Usage

To use it, add an FDTake to your view and call

- (void)takePhotoOrChooseFromLibrary

then implement FDTakeDelegate to receive the photo with

- (void)takeController:(FDTakeController *)controller 
              gotPhoto:(UIImage *)photo 
              withInfo:(NSDictionary *)info`

Other available options are documented at CocoaDocs for FDTake.

How it works

  1. See if device has camera
  2. Create action sheet with appropriate options ("Take Photo" or "Choose from Library"), as available
  3. Localize "Take Photo" and "Choose from Library" into user's language
  4. Wait for response
  5. Bring up image picker with selected image picking method
  6. Default to selfie mode if so configured
  7. Get response, extract image from a dictionary
  8. Dismiss picker, send image to delegate

Support

  • Supports iPhones, iPods and iPads
  • Supported languages:
    • English
    • Chinese Simplified
    • Turkish (thanks Suleyman Melikoglu)
    • French (thanks Guillaume Algis)
    • Dutch (thanks Mathijs Kadijk)
    • Chinese Traditional (thanks Qing Ao)
    • German (thanks Lars Häuser)
    • Russian (thanks Alexander Zubkov)
    • Norwegian (thanks Sindre Sorhus)
    • Arabic (thanks HadiIOS)
    • Polish (thanks Jacek Kwiecień)
    • Spanish (thanks David Jorge)
    • Hebrew (thanks Asaf Siman-Tov)
    • Danish (thanks kaspernissen)
    • Sweedish (thanks Paul Peelen)
    • Portugese (thanks Natan Rolnik)
    • Greek (thanks Konstantinos)
    • Please help translate FDTake.strings to more languages
  • Supports ARC and iOS 5+
  • Includes unit tests which run successfully using Travis CI.

Installation

  1. Add pod 'FDTake' to your Podfile
  2. The the API documentation under "Class Reference" at http://cocoadocs.org/docsets/FDTake/
  3. Please add your project to "I USE THIS" at https://www.cocoacontrols.com/controls/fdtake if you support this project
Something went wrong with that request. Please try again.