iOS SLComposeViewController:我无法以PNG格式发布图像
当我使用SLComposeViewController将png图像发布到Twitter时,发布的图像会自动转换为JPEG图像。结果,图像质量降低。你知道如何发布PNG格式吗 任何帮助都将不胜感激iOS SLComposeViewController:我无法以PNG格式发布图像,ios,social-framework,slcomposeviewcontroller,Ios,Social Framework,Slcomposeviewcontroller,当我使用SLComposeViewController将png图像发布到Twitter时,发布的图像会自动转换为JPEG图像。结果,图像质量降低。你知道如何发布PNG格式吗 任何帮助都将不胜感激 - (void)postTwitter { SLComposeViewController *controllerSLC = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
- (void)postTwitter
{
SLComposeViewController *controllerSLC = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
[controllerSLC setInitialText:@"Test post from my iPhone app"];
[controllerSLC addURL:[NSURL URLWithString:@"http://www.apple.com"]];
[controllerSLC addImage:[UIImage imageNamed:@"test.png"]];
[self presentViewController:controllerSLC animated:YES completion:Nil];
}
可能重复的