3

When I post a png image to Twitter by using SLComposeViewController, the posted image is converted to JPEG image automatically. As a result of that, the image quality is degraded. Do you know how to post a PNG format.

Any help will be gratefully appreciated.

- (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];
}
zono
  • 8,366
  • 21
  • 75
  • 113
  • possible duplicate of [iOS Tweet Uncompressed Image with Transparency](http://stackoverflow.com/questions/10966089/ios-tweet-uncompressed-image-with-transparency) – Bryan Jan 17 '15 at 19:28

0 Answers0