ios - Can I tweet an animated GIF from a UIActivityViewController and the native UIActivityTypePostToTwitter yet? -
i have uiactivityviewcontroller sharing object that
uiactivityitemsource protocol and offers animated gif file returning nsurl of .gif file , cfbridgingrelease(kuttypegif) in appropriate methods. i see gif moving in simulator if share 1 of objects in new mail service message. if seek tweeting same thing, frame of image attached tweet, it's uploaded still image.
do need wait apple update uiactivitytypeposttotwitter in future ios version, or have missed workaround you've seen somewhere? (i realize case isn't using list "twitter.com, android , iphone [app]". futile plea.)
homework done:
i know the twitter activity type can work alasset object, , people animated gifs , out of saved photos keeping info wrapped in alassets, want able tweet these gifs without touching photographic camera roll, if possible. i checked nshipster. i tried returningnsdata object instead of nsurl local .gif file on tip lyndsey twitter api. no change. i tried returning kuttypedata instead of kuttypegif datatypeidentifierforactivitytype after seeing in twitter api docs:
the image passed should raw binary of image or binary base64 encoded, no need otherwise encode or escape contents long content-type set appropriately (when in doubt: “application/octet-stream”).
but no image appeared in tweet.
thanks!
as listed under "parameters" of the twitter api:
image: background image profile, base64-encoded. must valid gif, jpg, or png image of less 800 kilobytes in size. images width larger 2048 pixels forcibly scaled down. the image must provided raw multipart data, not url.
ios objective-c twitter animated-gif uiactivityviewcontroller
No comments:
Post a Comment