UIDocumentInteractionController_c
全部标签 我是UIActivityViewController的新手,也许我缺乏基本的了解。我想要做的是将csv、xml和vcard文件附加到事件Controller并显示保管箱、谷歌驱动器等选项。我已经在我的iPhone上下载并安装了dropbox、googledrive等应用程序。现在,当我启动UIActivityViewController时,我看到的只是我的事件Controller中的默认消息和电子邮件应用程序。我怎样才能让其他应用程序也出现在他们的应用程序上?我是否需要为每个应用安装单独的SDK并以某种方式将它们整合到我的应用中?这是我最想看到的但这是我看到的。这是我到目前为止尝试过的
我正在尝试使用UIDocumentInteractionControllerOpenIn菜单将我的应用程序中生成的图像发送到其他应用程序。我正在使用以下代码将UIImage保存到磁盘:fileJpeg=[NSTemporaryDirectory()stringByAppendingPathComponent:@"activeImage.jpg"];jpegFileURL=[NSURLfileURLWithPath:fileJpeg];UIImage*imageToWrite=image;[UIImageJPEGRepresentation(imageToWrite,1.0)writeT
我正在尝试使用UIDocumentInteractionControllerOpenIn菜单将我的应用程序中生成的图像发送到其他应用程序。我正在使用以下代码将UIImage保存到磁盘:fileJpeg=[NSTemporaryDirectory()stringByAppendingPathComponent:@"activeImage.jpg"];jpegFileURL=[NSURLfileURLWithPath:fileJpeg];UIImage*imageToWrite=image;[UIImageJPEGRepresentation(imageToWrite,1.0)writeT
我正在使用UIDocumentInteractionController显示PDF文件。我的文件使用对用户不友好的编码文件名存储在文件系统中。我确实可以为文件取一个更友好的名称,但文件没有用这个名称存储(出于唯一性原因)。当我将文档加载到UIDocumentInteractionController时,View会在标题栏中显示不友好的“真实”文件名。有什么方法可以改变UIDocumentInteractionController显示的标题吗? 最佳答案 UIDocumentInteractionController有一个name属性
我正在使用UIDocumentInteractionController显示PDF文件。我的文件使用对用户不友好的编码文件名存储在文件系统中。我确实可以为文件取一个更友好的名称,但文件没有用这个名称存储(出于唯一性原因)。当我将文档加载到UIDocumentInteractionController时,View会在标题栏中显示不友好的“真实”文件名。有什么方法可以改变UIDocumentInteractionController显示的标题吗? 最佳答案 UIDocumentInteractionController有一个name属性
UIDocumentInteractionControllerpresentOptionsMenuFromBarButtonItem在ios8硬件(而不是7.1硬件或更早版本的硬件)中给我一个控制台错误:Unknownactivityitemssupplied:({"com.adobe.pdf"=;},"")InmyofficialAppStoreversionofmyapp,theappcrashesatthispoint.WhenIcompileandrunonmyiPaditjustgivestheerrorbutdoesnotcrash.Mycode:Inthe.h:UIDoc
UIDocumentInteractionControllerpresentOptionsMenuFromBarButtonItem在ios8硬件(而不是7.1硬件或更早版本的硬件)中给我一个控制台错误:Unknownactivityitemssupplied:({"com.adobe.pdf"=;},"")InmyofficialAppStoreversionofmyapp,theappcrashesatthispoint.WhenIcompileandrunonmyiPaditjustgivestheerrorbutdoesnotcrash.Mycode:Inthe.h:UIDoc
我在我的应用中实现了UIDocumentInteractionController以在选项中显示打开。它在iOS8设备上运行良好,但在iOS7中,当我从选项的邮件中打开我的PDF时。当我关闭邮件编辑器时,它会打开邮件编辑器,它还会从我的View中删除一个菜单按钮(添加到窗口中)。我整天都在为这个问题苦苦挣扎,但找不到任何解决方案。当我在其他选项中打开我的PDF时,没有问题。该问题仅与iOS7的邮件编辑器有关。我知道UIDocumentInterfaceController在iOS7上有问题。IfoundthesameissueonSO但这是带有快速查看的预览选项。这是我打开选项的代码[
我在我的应用中实现了UIDocumentInteractionController以在选项中显示打开。它在iOS8设备上运行良好,但在iOS7中,当我从选项的邮件中打开我的PDF时。当我关闭邮件编辑器时,它会打开邮件编辑器,它还会从我的View中删除一个菜单按钮(添加到窗口中)。我整天都在为这个问题苦苦挣扎,但找不到任何解决方案。当我在其他选项中打开我的PDF时,没有问题。该问题仅与iOS7的邮件编辑器有关。我知道UIDocumentInterfaceController在iOS7上有问题。IfoundthesameissueonSO但这是带有快速查看的预览选项。这是我打开选项的代码[
我有以下代码用于从我的Swift应用程序在Instagram上分享图片:@IBActionfuncinstagramShareButton(发件人:AnyObject){letdocumentsDirectory=NSSearchPathForDirectoriesInDomains(.DocumentDirectory,.UserDomainMask,true)[0]asNSStringletpath=documentsDirectory.stringByAppendingPathComponent("ShareIcon.igo")letimageName:String="Share