uploadcare-ios 2.0.0

uploadcare-ios 2.0.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total45
Week0
Month0

Installs

Apps12
powered by Segment

GitHub

Stars19
Watchers8
Forks8
Issues0
Contributors8
Pull Requests0

Code

Files47
LOCLines of Code 2,395


 
Depends on:
AFNetworking~> 1.2.0
AQGridView~> 1.3
libPusher~> 1.4
 

  • By
  • Zoreslav Khimich

Uploadcare for iOS

What it is

Uploadcare is a one-stop service for dealing with files on the web. You should probably visit the site.

Uploadcare for iOS is an open source Objective-C library that brings Uploadcare features to your iOS apps.

Uploadcare Widget, a major component of Uploadcare for iOS, is what a modern, cloud-aware file picker for iOS would be, if iOS had a notion of files. Since iOS doesn't, you can think of Uploadcare Widget as a thing picker – a drop-in component, that allows your users to select and upload their things (photos, documents, whatever you want them to) to your service, via Uploadcare.

Here's what it looks like:

Uploadcare for iOS menu Instagram gallery Facebook album list with the drawer opened Google drive

Quickstart

Installation

Uploadcare for iOS uses CocoaPods, a library dependency management tool for Objective-C projects. To install Uploadcare for iOS in your project, just add the following line to your Podfile:

pod 'uploadcare-ios'

Then, run pod install in your project directory.

Make sure to use the .xcworkspace file from now on.

Use

To display the Uploadcare Widget, you must create and initialize an instance of UPCUploadController by invoking initWithUploadcarePublicKey: method, using your Uploadcare public key as the argument:

#import <UPCUploadController.h>

/* ... */

UPCUploadController *uploadController = [[UPCUploadController alloc]initWithUploadcarePublicKey:@"demopublickey"]; // <-- replace with your actual public key

Then, present it like you would present any other UIViewController subclass:

[myController presentViewController:uploadController animated:YES completion:nil];

Delegate object

UPCUploadController delivers the results of user interaction to a delegate object that should be set using it's uploadDelegate property (not to be confused with delegate property). The delegate is expected to conform to UPCUploadDelegate formal protocol. Implement it's optional methods to get notified when an upload starts, continues, finishes, or fails, the user dismisses the controller and so on.

Appearance

UPCUploadController is compatible with UIAppearance protocol.

iPad

UPCUploadController expects it will be presented in a UIPopoverController on iPad. You need to pass the presenting popover controller object to UPCUploadController's popover property.

Sample App

Please take a look at uShare app.

Contact

If you have any questions, bug reports or suggestions, drop us a line.

License

Uploadcare iOS is licensed under the MIT license (see LICENSE).