SLComposeViewController不重视图像Twitter如果图像大于100KB

问题描述:

我尝试后的文本图像使用下面的代码叽叽喳喳:SLComposeViewController不重视图像Twitter如果图像大于100KB

SLComposeViewController *tweetController = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; 
[tweetController setInitialText:@"Hello this is a tweet. #somehastag #https://appstore.com/someurl"]; 
[tweetController addImage:[UIImage imageNamed:@"image.png"]]; 
[self presentViewController:tweetController animated:YES completion:Nil]; 


但有时图像不显示对话框,而不是发布到推特。 [UIImage imageNamed:@"image.png"]总是不回零,tweetController addImage总是返回YES。但形象并不总是成功的。

挖掘更多的进入问题,我发现图像时图像大于100KB

我使用PNG与1193x1193px上iOS9图像它不重视。

你有什么办法呢?

我使用jpeg而不是png来解决这个问题。