Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iOS SLComposeViewController:我无法以PNG格式发布图像_Ios_Social Framework_Slcomposeviewcontroller - Fatal编程技术网

iOS SLComposeViewController:我无法以PNG格式发布图像

iOS SLComposeViewController:我无法以PNG格式发布图像,ios,social-framework,slcomposeviewcontroller,Ios,Social Framework,Slcomposeviewcontroller,当我使用SLComposeViewController将png图像发布到Twitter时,发布的图像会自动转换为JPEG图像。结果,图像质量降低。你知道如何发布PNG格式吗 任何帮助都将不胜感激 - (void)postTwitter { SLComposeViewController *controllerSLC = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];

当我使用SLComposeViewController将png图像发布到Twitter时,发布的图像会自动转换为JPEG图像。结果,图像质量降低。你知道如何发布PNG格式吗

任何帮助都将不胜感激

- (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];
}
可能重复的