Giter VIP home page Giter VIP logo

fdtake's Introduction

FDTake

CI Status Version License Platform Readme Score

Easily take a photo or video or choose from library

馃嵑 Author's tip jar: https://amazon.com/hz/wishlist/ls/EE78A23EEGQB

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

To use it in your project, add an FDTakeController to your view controller and implement:

fdTakeController.didGetPhoto = {
    (_ photo: UIImage, _ info: [AnyHashable : Any]) in
}

then call:

fdTakeController.present()

The full API is:

/// Public initializer
public override init()

/// Convenience method for getting a photo
open class func getPhotoWithCallback(getPhotoWithCallback callback: @escaping (_ photo: UIImage, _ info: [AnyHashable : Any]) -> Void) -> <<error type>>

/// Convenience method for getting a video
open class func getVideoWithCallback(getVideoWithCallback callback: @escaping (_ video: URL, _ info: [AnyHashable : Any]) -> Void)

/// Whether to allow selecting a photo
open var allowsPhoto: Bool

/// Whether to allow selecting a video
open var allowsVideo: Bool

/// Whether to allow capturing a photo/video with the camera
open var allowsTake: Bool

/// Whether to allow selecting existing media
open var allowsSelectFromLibrary: Bool

/// Whether to allow editing the media after capturing/selection
open var allowsEditing: Bool

/// Whether to use full screen camera preview on the iPad
open var iPadUsesFullScreenCamera: Bool

/// Enable selfie mode by default
open var defaultsToFrontCamera: Bool

/// The UIBarButtonItem to present from (may be replaced by overloaded methods)
open var presentingBarButtonItem: UIBarButtonItem?

/// The UIView to present from (may be replaced by overloaded methods)
open var presentingView: UIView?

/// The UIRect to present from (may be replaced by overloaded methods)
open var presentingRect: CGRect?

/// The UITabBar to present from (may be replaced by overloaded methods)
open var presentingTabBar: UITabBar?

/// The UIViewController to present from (may be replaced by overloaded methods)
open lazy var presentingViewController: UIViewController { get set }

/// A photo was selected
open var didGetPhoto: ((_ photo: UIImage, _ info: [AnyHashable : Any]) -> Void)?

/// A video was selected
open var didGetVideo: ((_ video: URL, _ info: [AnyHashable : Any]) -> Void)?

/// The user did not attempt to select a photo
open var didDeny: (() -> Void)?

/// The user started selecting a photo or took a photo and then hit cancel
open var didCancel: (() -> Void)?

/// A photo or video was selected but the ImagePicker had NIL for EditedImage and OriginalImage
open var didFail: (() -> Void)?

/// Custom UI text (skips localization)
open var cancelText: String?

/// Custom UI text (skips localization)
open var chooseFromLibraryText: String?

/// Custom UI text (skips localization)
open var chooseFromPhotoRollText: String?

/// Custom UI text (skips localization)
open var noSourcesText: String?

/// Custom UI text (skips localization)
open var takePhotoText: String?

/// Custom UI text (skips localization)
open var takeVideoText: String?

/// Presents the user with an option to take a photo or choose a photo from the library
open func present()

/// Dismisses the displayed view. Especially handy if the sheet is displayed while suspending the app,
open func dismiss()

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, iPads and tvOS (but not tested)
  • 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)
    • Italian (thanks Giuseppe Filograno)
    • Hungarian (thanks Andras Kadar)
    • Please help translate FDTake.strings to more languages
  • Pure Swift support and iOS 8+ required
  • Compile testing running on Travis CI
  • In progress: functional test cases (please help)
  • In progress: UI test cases (please help)

Installation

Add this to your project using Swift Package Manager. In Xcode that is simply: File > Swift Packages > Add Package Dependency... and you're done. Alternative installation options are shown below for legacy projects.

CocoaPods

If you are already using CocoaPods, just add 'FDTake' to your Podfile then run pod install.

Carthage

If you are already using Carthage, just add to your Cartfile:

github "fulldecent/FDTake"

Then run carthage update to build the framework and drag the built FDTake.framework into your Xcode project.

Author

William Entriken, [email protected]

Project scope

This is a mature project and we do not expect to add new features unless something has already become state-of-the-art in other applications. Please be prepared to cite screenshots of other apps before making a feature request.

We support targets for the latest released versions of Xcode, Carthage, CocoaPods and Swift Package Manager. If there are incompatabilities, for example CocoaPods not supporting the latest version of Xcode, then we will only support the latest released versions/combinations that are supported. If you would like to support pre-release versions of these packages, please open a pull request, not an issue.

License

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

Contributing

This project's layout is based on https://github.com/fulldecent/swift4-module-template If you would like to change the layout, please change that project FIRST. Also you may appreciate that project has "recipes" -- you don't just change the code, you explain why you are doing things. As a maintainer this makes my job MUCH simpler. In a similar respect, if you are introducing non-minor changes, it will be VERY helpful if you could please reference to another project (like AlamoFire) that has seen and discussed the types of design challenges you are touching.) Thanks again and we all really do appreciate your contributions.

fdtake's People

Contributors

andraskadar avatar dbachrach avatar ensarbaba avatar filograno avatar fulldecent avatar guillaumealgis avatar hadycodes avatar igotit avatar jettf avatar joelgerborelaser avatar kaspernissen avatar laplacesdemon avatar lauritzsh avatar lbanders avatar lh84 avatar mac-cain13 avatar mosamer avatar natanrolnik avatar nemoeslovo avatar pixelogik avatar poormusic2001 avatar ppeelen avatar sindresorhus avatar yaroslav-zhurakovskiy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fdtake's Issues

FDTake 0.2.3 lost all its localised resource files

This is in Cocoapods.
please release a new version with the fix in commit 3119d33 , as automatic pod updates break FDTake.

Filelistings (sorry, no formatting or indentation:)
FDTake 0.2.2:
FDTakeExample:
FDTakeController.h
FDTakeController.m
LICENSE
README.md

FDTake 0.2.3:
FDTakeExample:
ar.lproj:
FDTake.strings
da.lproj:
FDTake.strings
de.lproj:
FDTake.strings
el.lproj:
FDTake.strings
en.lproj:
FDTake.strings
InfoPlist.strings
MainStoryboard_iPad.storyboard
MainStoryboard_iPhone.storyboard
es.lproj:
FDTake.strings
FDTakeController.h
FDTakeController.m
fr.lproj:
FDTake.strings
he.lproj:
FDTake.strings
nb.lproj:
FDTake.strings
nl.lproj:
FDTake.strings
pl.lproj:
FDTake.strings
pt.lproj:
FDTake.strings
ru.lproj:
FDTake.strings
sv.lproj:
FDTake.strings
tr.lproj:
FDTake.strings
zh-Hans.lproj:
FDTake.strings
zh-Hant.lproj:
FDTake.strings
LICENSE
README.md

Orientation Issue

Here is the problem I have. I take a picture on my iPhone 5 on the camera and email it to myself. If i go to upload it to a blog or facebook it is always turned sideways. I have to open it on preview and re-save it so it has the correct orientation (even though i did not make any changes).
where as landscape images are fine.

Resize

Ability to require a certain size result. User will choose a crop box on the photo and then the result will be scaled to the exact dimensions you want.

Main use: selecting a profile photo which has to be AxB pixels.

Anyone else believe this feature belongs in this library?

Deprecation in iOS 6

  • (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
    {
    [picker dismissModalViewControllerAnimated:YES];
    if ([self.delegate respondsToSelector:@selector(takeController:didCancelAfterAttempting:)])
    [self.delegate takeController:self didCancelAfterAttempting:YES];
    }

=> [picker dismissModalViewControllerAnimated:YES]; is deprecated in iOS 6+

the position of editted photo is invalid with iOS7

The issue appeared after I upgraded my iOS to iOS7.

  1. choose from library and edit:
    img_0826
  2. got the editted image:
    img_0827

there are about 30px offset..
seems only the images can be moved horizontally in edit mode have the problem.
don't know why.. anyone else has the problem?

Use last photo taken [HELP NEEDED]

Many Applications nowadays offer

  • last photo taken
  • take photo
  • choose from library

I use the first option all the time. It would be swell if FDTake would offer this feature.

License?

I don't see a license for this project. Did you have one in mind?

Support being initiated from a UIBarButtonItem on iPad

Currently it will show both the UIActionSheet and UIPopoverController at the top left of the screen on iPad. This is because UIBarButtonItem inherits from NSObject instead of UIView because of legacy...

Found this code snippet somewhere for UIPopoverController:

if ([sender isKindOfClass:[UIBarButtonItem class]]) {
  [popoverController presentPopoverFromBarButtonItem:sender permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
} else {
  [popoverController presentPopoverFromRect:((UIView *)sender).bounds inView:sender permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
}

For UIActionSheet you need to use showFromBarButtonItem:

[self.actionSheet showFromBarButtonItem:self.barButtonItem animated:YES];

Can you also change to use the sender by default instead of us having to manually set it?

I would do a pull request, but I'm a total beginner with Objective-C.

Xcode 7.3 build error

error: [Xcode-DerivedData]/[Project]/Build/Products/Debug-iphonesimulator/FDTake/FDTake.bundle: No such file or directory
Works before on 7.2

iPad landscape problems

On iPad this pod is working fine in portrait mode, however when presenting the popover controller in landscape mode the camera view is still in portrait. Taking a picture in landscape mode with the viewfinder in portrait, sets the image correct in landscape. So the problem is only occurring while finding your target.

From what i can find on google, maybe this is a Apple thing with the UIImagePickerController.

whose view is not in the window hierarchy

After calling FDTake from a Modalview, It fires me:

<UIImagePickerController: 0x979d4b0> on <CustomTabBarControllerViewController: 0xb64ee60> whose view is not in the window hierarchy!

Where CustomTabBarControllerViewController is the rootview. The modal should fire the imagepicker, not the rootview, don't it?

Localisation lost after switching to pods using frameworks

Hello,

I've recently changed way my pods are installed (added use_frameworks! flag) and now strings are not localised (just getting standard keys like chooseFromLibrary).
Is there a problem on my side or something that I need to change in the library?
I'm happy to prepare a PR if you let me know where this needs to be fixed.

Thanks, Kacper.

Swift support?

Hi

I tried adding the library with pods and then
#import "FDTakeController.h" in my bridging file but I get:

/Users/dgomez/Desktop/Swift - Camera/Swift - Camera/Swift - Camera-Bridging-Header.h:5:9: note: in file included from /Users/dgomez/Desktop/Swift - Camera/Swift - Camera/Swift - Camera-Bridging-Header.h:5:
#import "FDTakeController.h"
        ^
/Users/dgomez/Desktop/Swift - Camera/Pods/Headers/Public/FDTake/FDTakeController.h:29:65: error: expected a type
- (void)takeController:(FDTakeController *)controller gotPhoto:(UIImage *)photo withInfo:(NSDictionary *)info;
                                                                ^
/Users/dgomez/Desktop/Swift - Camera/Swift - Camera/Swift - Camera-Bridging-Header.h:5:9: note: in file included from /Users/dgomez/Desktop/Swift - Camera/Swift - Camera/Swift - Camera-Bridging-Header.h:5:
#import "FDTakeController.h"
        ^
/Users/dgomez/Desktop/Swift - Camera/Pods/Headers/Public/FDTake/FDTakeController.h:37:41: error: cannot find protocol declaration for 'UIImagePickerControllerDelegate'
@interface FDTakeController : NSObject <UIImagePickerControllerDelegate>
                                        ^
/Users/dgomez/Desktop/Swift - Camera/Swift - Camera/Swift - Camera-Bridging-Header.h:5:9: note: in file included from /Users/dgomez/Desktop/Swift - Camera/Swift - Camera/Swift - Camera-Bridging-Header.h:5:
#import "FDTakeController.h"
        ^
/Users/dgomez/Desktop/Swift - Camera/Pods/Headers/Public/FDTake/FDTakeController.h:59:42: error: unknown type name 'UIViewController'
@property (nonatomic, unsafe_unretained) UIViewController *viewControllerForPresentingImagePickerController;
                                         ^
/Users/dgomez/Desktop/Swift - Camera/Swift - Camera/Swift - Camera-Bridging-Header.h:5:9: note: in file included from /Users/dgomez/Desktop/Swift - Camera/Swift - Camera/Swift - Camera-Bridging-Header.h:5:
#import "FDTakeController.h"
        ^
/Users/dgomez/Desktop/Swift - Camera/Pods/Headers/Public/FDTake/FDTakeController.h:61:31: error: unknown type name 'UITabBar'
@property (strong, nonatomic) UITabBar *tabBar;
                              ^
/Users/dgomez/Desktop/Swift - Camera/Swift - Camera/Swift - Camera-Bridging-Header.h:5:9: note: in file included from /Users/dgomez/Desktop/Swift - Camera/Swift - Camera/Swift - Camera-Bridging-Header.h:5:
#import "FDTakeController.h"
        ^
/Users/dgomez/Desktop/Swift - Camera/Pods/Headers/Public/FDTake/FDTakeController.h:61:1: error: property with 'retain (or strong)' attribute must be of object type
@property (strong, nonatomic) UITabBar *tabBar;
^
<unknown>:0: error: failed to import bridging header '/Users/dgomez/Desktop/Swift - Camera/Swift - Camera/Swift - Camera-Bridging-Header.h'```

FDTake inside a view controller contained in a Tab Bar view

Hello William,

I'm trying to use FDTake inside a view controller contained in a Tab Bar view controller as the root view controller.

When attempting to choose a photo I get the following error:

2013-01-21 11:42:40.923 Era[12394:c07] Warning: Attempt to present <UIImagePickerController: 0x9145060> on <UITabBarController: 0x76188d0> whose view is not in the window hierarchy!

Any advice?

Thank you very much,

Jorge Tapia

Memory Warning

I'm receiving a memory warning after taking a picture and when opening the take photo multiple times. Has anyone else experience this?

I'm also receiving "Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates." when opening the take photo.

This is test on iOS7 with an iPhone 5s and iPhone 4s.

Missing dismiss option

When suspending the app/dismissing a view it would be nice to have the option to dismiss the FDtake's ActionSheet.

iPad - crash if trigger the actionsheet inside a tab view controller

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Sheet can not be presented because the view is not in a window: <UIView: 0xc765470; frame = (0 0; 768 1024); autoresize = RM+BM; layer = <CALayer: 0xc7654d0>>'
*** First throw call stack:
(
0 CoreFoundation 0x021945e4 exceptionPreprocess + 180
1 libobjc.A.dylib 0x01e3d8b6 objc_exception_throw + 44
2 UIKit 0x00f0659a -[UIActionSheet showInView:] + 0
3 UIKit 0x00f06a87 -[UIActionSheet showFromRect:inView:animated:] + 43
4 iPAYstPOS.test.ios7 0x00011b13 -[FDTakeController _setUpActionSheet] + 1811
5 iPAYstPOS.test.ios7 0x0000efa0 -[FDTakeController takePhotoOrChooseFromLibrary] + 1104
6 iPAYstPOS.test.ios7 0x000886f9 -[PanTerminalViewController handleBtnThumb:] + 441
7 libobjc.A.dylib 0x01e4f874 -[NSObject performSelector:withObject:withObject:] + 77
8 UIKit 0x00a2f0c2 -[UIApplication sendAction:to:from:forEvent:] + 108
9 UIKit 0x00a2f04e -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
10 UIKit 0x00b270c1 -[UIControl sendAction:to:forEvent:] + 66
11 UIKit 0x00b27484 -[UIControl _sendActionsForEvents:withEvent:] + 577
12 UIKit 0x00b26733 -[UIControl touchesEnded:withEvent:] + 641
13 UIKit 0x00a6c51d -[UIWindow _sendTouchesForEvent:] + 852
14 UIKit 0x00a6d184 -[UIWindow sendEvent:] + 1232
15 UIKit 0x00a40e86 -[UIApplication sendEvent:] + 242
16 UIKit 0x00a2b18f _UIApplicationHandleEventQueue + 11421
17 CoreFoundation 0x0211d83f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION
+ 15
18 CoreFoundation 0x0211d1cb __CFRunLoopDoSources0 + 235
19 CoreFoundation 0x0213a29e __CFRunLoopRun + 910
20 CoreFoundation 0x02139ac3 CFRunLoopRunSpecific + 467
21 CoreFoundation 0x021398db CFRunLoopRunInMode + 123
22 GraphicsServices 0x045b59e2 GSEventRunModal + 192
23 GraphicsServices 0x045b5809 GSEventRun + 104
24 UIKit 0x00a2dd3b UIApplicationMain + 1225
25 iPAYstPOS.test.ios7 0x000c978d main + 141
26 libdyld.dylib 0x027be70d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Localization not working properly? [HELP NEEDED]

Hi, thanks for a neat library.

I have placed the Localizable.strings from the English and Danish under a Supporting Files group, and I can see they have been added to en.lproj and da.lproj. I can see they are picked up:

image

The pop-up does not seem to be translated however, it will just say "takePhoto" for example. I know the Localizable.strings files are working, because I have this line

label.text = NSLocalizedString("loading", comment: "The loading message when pulling data")

and that changes correctly if I choose Danish or English.

Any idea if I am doing something wrong here? I copied them into the project, no reference link. I do not use CocoaPods. Content of the English Localizable.strings:

/* Decline to proceed with operation */
"cancel" = "Cancel";

/* Option to select photo from library */
"chooseFromLibrary" = "Choose from library";

/* Option to select photo from photo roll */
"chooseFromPhotoRoll" = "Choose from photo roll";

/* There are no sources available to select a photo */
"noSources" = "There are no sources available to select a photo";

/* Option to take photo using camera */
"takePhoto" = "Take photo";

/* Option to take video using camera */
"takeVideo" = "Take video";

/* The loading message when pulling data */
"loading" = "Loading...";

Thank you.

FDTakeController add a property Tag

@property (nonatomic, copy) NSString *tag;
so,we can distinguish them when using
- (void)takeController:(FDTakeController *)controller gotPhoto:(UIImage *)photo withInfo:(NSDictionary *)info .I will take two photos in a viewcontroller

Swift supported in Cocoa pods pre

Hi

Swift is now available in cocoa pods pre:

TL;DR: CocoaPods 0.36 will bring the long-awaited support for Frameworks and Swift. It isn't released and considered stable yet, but a beta is now available for everyone via [sudo] gem install cocoapods --pre. Pod authors will especially want to try this version to make sure their pods will work with the upcoming release. This is because if a single dependency in a user's project requires being a framework, then your Pod will also become a framework.

From: http://blog.cocoapods.org/Pod-Authors-Guide-to-CocoaPods-Frameworks/

iOS 9: Black screen when taking the picture (even if user agreed)

First I can see the camera, working then i push the "click" button and get a dark screen, even if the user agreed.
I get the following errors in the console (4 times):

CGAffineTransformInvert: singular matrix.
CGAffineTransformInvert: singular matrix.
CGAffineTransformInvert: singular matrix.
CGAffineTransformInvert: singular matrix.

Invoke Camera in Medium Resolution

Can you invoke Camera (video and Photo) in medium resolution mode. (i.e) A x B size (640x480).
Bcoz, few minutes video takes much MB to post it to server

Add test cases [NEED HELP]

I would like to add test cases but am not sure where to start.

Does anyone have experience with this and want to help out?

[Issue] w/ delegate using CocoaPods

If not using the static library (cocoapods), the delegate can get fired only ONCE, which is the first photo capture:

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

BUT

If using FDTake static library (copy/paste), delegate got fired everytime I take new photo.

Error on Presenting FDTake

Thanks first for this simple and light library.

I got a error on Presenting FDTake FROM a PRESENTED TableViewController.

2014-04-26 14:23:39.069 Group2Study[217:60b] Warning: Attempt to present UIImagePickerController: 0x14454a880 on NavigationViewController: 0x14452f900 whose view is not in the window hierarchy!

NavigationViewController is a subclass of UINavigationController. It's from REMenu (https://github.com/romaonthego/REMenu).

Any Idea how I can solve it?

Using FDTake in a UIView instead of a UIViewController.

Hi,

I tried to use FDTake inside an UICustemTableViewCell for a dynamic form.

My problem is that the button that instantiates the FDTakeController in inside an UITableViewCell. So the cell doesn't know its UIViewController and I get an logical error of window hierarchy because I cannot initialise viewControllerForPresentingImagePickerController.

Do you have an idea how I can use FDTake in this case ?

Regards.

Features

It would be nice to see in next updates:

  1. Video maximum duration
@property (nonatomic) float videoMaximumDuration
} else if (actionSheet.tag == kVideosActionSheetTag) {
            self.imagePicker.allowsEditing = self.allowsEditingVideo;
            self.imagePicker.mediaTypes = @[(NSString *) kUTTypeMovie];
            self.imagePicker.videoMaximumDuration = self.videoMaximumDuration;
  1. Also it would be great to have some properties for Action sheet button text colours.

Example 'present from window' crashes on iPad

Using an iPad Mini 2 running iOS 9.3.1 and building the example in XCode 7.3.

Running the example and then tapping 'Present from window' button causes the following crash:

Terminating app due to uncaught exception 'NSGenericException', reason: 'Your application has presented a UIAlertController (<UIAlertController: 0x12c561280>) of style UIAlertControllerStyleActionSheet. The modalPresentationStyle of a UIAlertController with this style is UIModalPresentationPopover. You must provide location information for this popover through the alert controller's popoverPresentationController. You must provide either a sourceView and sourceRect or a barButtonItem. If this information is not known when you present the alert controller, you may provide it in the UIPopoverPresentationControllerDelegate method -prepareForPopoverPresentation.'

Investigation lead me to this SO question suggesting extra properties are required for the popover on iPad, this makes sense because running the example on the iPhone 6s simulator worked fine.
UIActionSheet from Popover with iOS8 GM

Video Not working in iOS 7

Video is not getting save when we record from this app.
I could not see, this selector method

- (void)takeController:(FDTakeController *)controller gotVideo:(NSURL *)video withInfo:(NSDictionary *)info

Am I missing anything, thanks

[README] replace pod line

to be much easier to copy/paste the Pod, please replace
pod "FDTake"
with:
pod 'FDTake'

thanks ;)``

icloud photo library

I have a problem to save videos and photos to iCloud enabled Photo library. Is some ready solution out there?

Unable to manually set text for UIActionSheet buttons

Is it possible to add the option of manually setting the text for these buttons? I already have strings files for various languages and would prefer not to add clutter to my project by adding your strings files. Maybe add NSString properties for those which will override the strings files text if set?

Module deployment target issue

HI When I have tried to build using Cocoapods,
I have set my build target to 8.0 but I get this error when trying to build:
Module file's minimum deployment target is ios8.0 v8.0:

Any ideas how to resolve?

iPad fullscreen mode

It would be nice if it was possible to switch between fullscreen and popover view modes on iPad.

Polish translation

Hey. Can you add polish translation? Here are translated strings:

/* Decline to proceed with operation */
"cancel" = "Anuluj";

/* Option to select photo from library */
"chooseFromLibrary" = "Wybierz z galerii";

/* Option to select photo from photo roll */
"chooseFromPhotoRoll" = "Wybierz z rolki aparatu";

/* There are no sources available to select a photo */
"noSources" = "Brak 藕r贸d艂a, z kt贸rego mo偶na by wybra膰 zdj臋cie";

/* Option to take photo using camera */
"takePhoto" = "Zr贸b zdj臋cie";

/* Option to take video using camera */
"takeVideo" = "Nagraj film";

Image Encoding Issue

  • Created UIImage using image file name.
  • Encoded okay, Java or C# can decode and save as image just fine.
  • Chose that same image via FDTake (dragged image into simulator window)
  • Encoding now yields different result, can't be decoded by Java or C#.

Is the image fetched from FDTake not meant to be decoded to NSString via base64 encoding?
This was how I did the encoding:

[UIImageJPEGRepresentation(image, 1.0) base64EncodedStringWithOptions:NSDataBase64Encoding64CharacterLineLength];
[UIImagePNGRepresentation(image) base64EncodedStringWithOptions:NSDataBase64Encoding64CharacterLineLength];

And the decoding:

- (UIImage*) convertToImage {
    NSData *data = [[NSData alloc]initWithBase64EncodedString:string options:NSDataBase64DecodingIgnoreUnknownCharacters];
    return [UIImage imageWithData:data];
}

While the image can be encoded and then decoded immediately and still be shown on UIImageView,
only ones that were create directly from stored image files can be decoded for tranference among systems. Is something wrong with images that are picked via FDTake?

EDIT: I'm using XCode 6.4, iOS 8.0

UIImagePickerController loses its delegate after it is used in iOS 8.1

Found this bug while trying out the demo app (FDTakeExample) on iOS 8.1.

The UIImagePickerController's delegate is reset to nil every time the controller FDTakeController is used. This means that the demo app only works once. On subsequent taps of takePhotoOrChooseFromLibrary: the picture taken does not end up in the UIImageView.

As a workaround, you can reinitialize the FDTakeController every time you use it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    馃枛 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 馃搳馃搱馃帀

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google 鉂わ笍 Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.