I’m posting a tweet from iOS without the tweet sheet by uploading the image via:
then posting a status with the
media_ids argument via:
The tweet posts with the picture, but it is always displayed on Twitter sideways, unless the picture was taken in landscape mode. Are there other parameters I can use to properly display a portrait mode image?
I tried rotating the image data before uploading with this code:
UIImage *image = [UIImage imageWithCGImage:lowRes.CGImage scale:1 orientation:UIImageOrientationRight];
but none of the orientation options have any effect. How can I get the photo to post like this: https://twitter.com/xavierrojas_/status/711428546145550336 ?