草庐IT

OpenInMenu

全部标签

ios - UIDocumentInteractionController OpenInMenu 崩溃 iOS 应用程序

我正在尝试使用UIDocumentInteractionControllerOpenIn菜单将我的应用程序中生成的图像发送到其他应用程序。我正在使用以下代码将UIImage保存到磁盘:fileJpeg=[NSTemporaryDirectory()stringByAppendingPathComponent:@"activeImage.jpg"];jpegFileURL=[NSURLfileURLWithPath:fileJpeg];UIImage*imageToWrite=image;[UIImageJPEGRepresentation(imageToWrite,1.0)writeT

ios - UIDocumentInteractionController OpenInMenu 崩溃 iOS 应用程序

我正在尝试使用UIDocumentInteractionControllerOpenIn菜单将我的应用程序中生成的图像发送到其他应用程序。我正在使用以下代码将UIImage保存到磁盘:fileJpeg=[NSTemporaryDirectory()stringByAppendingPathComponent:@"activeImage.jpg"];jpegFileURL=[NSURLfileURLWithPath:fileJpeg];UIImage*imageToWrite=image;[UIImageJPEGRepresentation(imageToWrite,1.0)writeT