Google API
Google / JSON Image Search API Guide .
You will need to display the images yourself, resulting in a json response. However, this will give you maximum control. The result will contain a sketch that you can use to display the preview.
Upload Images
Image loading can be done in various ways:
Using the Google APIs only works under certain circumstances, such as
“Applications that use this interface must adhere to all existing Terms of Service. Most importantly, you must correctly identify yourself in your requests.”
Saving Images
After receiving the results, you can save the image to disk using:
NSString *aFileName = @"myImage.jpg"; NSFileManager *fileManager = [NSFileManager defaultManager]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentDirectory = [paths objectAtIndex:0]; NSString *path = [documentDirectory stringByAppendingPathComponent:aFileName]; [myImageAsData writeToFile:path atomically:YES];
if you already have a UIImage image:
NSData *myImageAsData = [NSData dataWithData:UIImagePNGRepresentation(anImage)]; [myImageAsData writeToFile:path atomically:YES];
source share