ios - Sharing attachments using Gmail sharing extension -
i'm attempting share image in app using gmail sharing extension. works okay except recipient of email receives malformed file.
sample project can downloaded here.
using ios 8.3, xcode 4.6.3, gmail 4.0
sharing code looks this:
uiimage *image = [uiimage imagenamed:@"image"]; nsdata *imagedata = uiimagepngrepresentation(image); uiactivityviewcontroller *activityvc = [[uiactivityviewcontroller alloc] initwithactivityitems:@[imagedata] applicationactivities:nil]; [self presentviewcontroller:activityvc animated:yes completion:nil]; this presents activity sheet this:

pressing gmail button shows:

and email arrives this:

but, okay if try use ios's mail.app:

Comments
Post a Comment