TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by John Blanco, -description=Mac.
LifePics is the market leader in providing retail photofinishers with the latest online imaging services and technologies to conduct business on the Web.
The LifePics OPEN (Open Photo Ecommerce Network) program allows app developers to drive consumer photo orders through the LifePics Network. We will allow you to link your app into our network, and we will pay you a revenue share percentage for every order your app generates.
To learn more about developer revenue share please read the enclosed LifePics Developer Agreement and review Schedule 1.
To request developer keys from LifePics please email a complete signed copy of the LifePics Developer Agreement to [email protected]. LifePics will generate a set of developer keys and email them back to you. Please see Schedule 1 in the LifePics Developer Agreement on documents to send to LifePics to be eligible for developer revenue share payments.
Please email any questions about the OPEN program to [email protected].
The LifePics SDK allows your iPhone users to select images and have them printed locally at nearby photofinishers.
Users can select images from their photo library, images provided by your application, or, optionally, images from their Facebook, Instagram, Google, or Flickr accounts.
You will need a free LifePics developer key. Details are in the Overview section above.
The SDK supports iOS 7.0 and later.
CocoaPods
The easiest way to install the LifePics SDK is using CocoaPods.
platform :ios, '7.0'
pod 'LifePics'
Manual Installation
Put a copy of the LifePics.framework and LifePics.bundle files anywhere in your project folder.
In Xcode, select your project in the Project Navigator.
Select your app target.
Select the Build Phases tab.
Expand Link Binary With Libraries.
Click the + button, then Add Other, to select and add the LifePics.framework file.
Next, add the following system frameworks (if they're not already linked to your project:
And these libraries:
Now switch to the Build Settings tab and find the Other Linker Flags setting. Add "-ObjC" here, for both Debug and Release.
Add the LifePics.bundle to your target, by selecting Add Files in the Project Navigator.
Import the LifePics headers:
#import <LifePics/LifePics.h>
Connect to the LifePics network by providing your Partner ID, Source ID, and password:
[[LPFSessionManager sharedManager] beginPartnerSessionWithID:@"partnerID"
sourceID:@"sourceID"
password:@"password"
completion:^(NSError *error) {
if ([error code] != 0) {
// Handle error here.
}
}];
Finally, present the LifePics Order View controller:
LPFOrderViewController *vc = [[LPFOrderViewController alloc] initWithImageDataSource:nil];
[self presentViewController:vc animated:YES completion:NULL];
You can customize the colors used by the LifePics Order View Controller by setting the primary and secondary colors before presenting it:
LPFOrderViewController *vc = [[LPFOrderViewController alloc] initWithImageDataSource:nil];
vc.primaryColor = [UIColor blueColor];
vc.secondaryColor = [UIColor purpleColor];
[self presentViewController:vc animated:YES completion:NULL];
Further interface customizations can be made using the UIAppearance protocol.
You can also enable Facebook, Instagram, Google, and Flickr access in the Sources view. See the Configure Photo Sources document for details.
Features
Added a required email address to the Confirm Order view.
Added Terms of Service and Privacy Policy links to the Confirm Order view.
Improved the error message if access to device photos has been denied.
Features
Photo sources are now dimmed until you log into them.
You can now log out of a photo source (use the Edit button).
The staging server will be used when building in DEBUG mode. Otherwise the production server will be used.
When starting a session, a message will be displayed in the Xcode console to let you know if you’re connected to the staging or production server.
The Submit Order button will now say “Submit Fake Order” when logged into the staging server.
Bug Fixes
The list of photo sources no longer contains unwanted white space at the top when retuning from a photo source.
The dialog offering to submit a fake order has been removed.
Features
Features
Bug Fixes
Bug Fixes
Features
Bug Fixes
Features
Bug Fixes
Features
Bug Fixes