UIDocumentInteractionController应用程序图标未四舍五入

时间:2015-01-07 04:47:56

标签: ios

列表中的应用图标未显示为带有奇怪图标的屏幕截图,因为我标记为红色: https://www.dropbox.com/s/cd47cgwr0ahcx98/not_rounded.PNG?dl=0

  • 我需要的应用程序包括:instagram,twitter,line,whatsapp,社交媒体应用程序,

请帮我查看下面的代码, 希望可以用正常的圆形修复图标显示, 如果可能,将会教导或指导我, 感谢。

NSString *documentDirectory=[FileIOUtility openDocPath:@"Temp"];
NSString *saveImagePath=[documentDirectory stringByAppendingPathComponent:@"Image.ig"];
NSData *imageData=UIImagePNGRepresentation(shareImage);
NSString *saveImagePathNormal=[documentDirectory stringByAppendingPathComponent:@"Image.png"];
[imageData writeToFile:saveImagePath atomically:YES];
[imageData writeToFile:saveImagePathNormal atomically:YES];

NSURL *imageURL=[NSURL fileURLWithPath:saveImagePath];

docController=[[UIDocumentInteractionController alloc]init];
docController.delegate=self;

[docController setURL:imageURL];
[docController presentOpenInMenuFromRect:CGRectZero inView:self.view animated:true];

0 个答案:

没有答案