printdotio / printio-ios-sdk

SDK that enables the printing of any photo, from any source, onto any product!
Other
20 stars 11 forks source link

Directly add UIImage to Gooten Photo Source #524

Closed Stjng closed 8 years ago

Stjng commented 8 years ago

How to directly add an UIImage created by my App to Gooten Photo Source. I only find the way that i need to export the Image to Device and then choose from Phone Source. Btw, do i able to use Gooten SDK via API, not via the webview? Ex: get list posters, canvas to print, post an order Form with our image and payment via Apple Pay, v..v...

perisicboro commented 8 years ago

@Stjng You can use setImages function, or to create custom photo source

We are working on Gooten Core SDK, without UI, just the thing you're talking about, where you'll be able to get all stuffs you need to create an order. I'll let you know when we release it public.

perisicboro commented 8 years ago

@Stjng Example how to use setImages

NSMutableArray *photoSources = [[NSMutableArray alloc]init];
[photoSources addObject:[[PIOSideMenuButton alloc]initWithType:PIO_SM_INSTAGRAM]];
[photoSources addObject:[[PIOSideMenuButton alloc]initWithType:PIO_SM_PASSED_PHOTOS]];

[self.printIO setAvailablePhotoSources:photoSources];
[self.printIO setImages:images];
Stjng commented 8 years ago

@perisicboro Thanks for help! But i don't find any class PIOSideMenuButton ( only PIOSideMenuButtons), i'm using Swift. Whatever, i found another method disablePhotoSourcesForOnePhotoTemplate to direct use my added images. Thanks again :)