uti

UIDocument Creation on iOS 11: reader is not permitted to access the URL

╄→尐↘猪︶ㄣ 提交于 2019-12-03 16:40:37
问题 Since iOS 11 I have encountered the following error every time I am creating a new document using UIDocument API: [ERROR] Could not get attribute values for item /var/mobile/Containers/Data/Application/XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX/Documents/myDoc-XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX.myFile (n) . Error: Error Domain=NSFileProviderInternalErrorDomain Code=1 "The reader is not permitted to access the URL." UserInfo={NSLocalizedDescription=The reader is not permitted to access the URL.}

How to tell (programmatically) if there are / are not any registered apps that support opening a specific document type?

送分小仙女□ 提交于 2019-12-03 14:20:23
Apple's documentation for UIDocumentInteractionController presentOpenInMenuFromBarButtonItem:animated: method states that "If there are no registered apps that support opening the document, the document interaction controller does not display a menu." In my app I want to display a button if and only if there is an app on the device that will open it. (I only want the button to pop up a menu to open a file; I don't want QuickLook, Copy or Print). As things stand, if the button is there, but no apps are registered that can open the relevant file, the user gets the unsatisfactory experience of a

How do i associate excel file type (xlsx) with iPhone application

大憨熊 提交于 2019-12-03 05:59:08
Hi i have managed to open .xls files form mail app by adding document type to the project build and set the Types field to "com.microsoft.excel.xls" (see screen shot). I want to do the same with xlsx files but can't do it. I tried to add "com.microsoft.excel.xlsx" but it didn't work I solved that by defining custom UTI as follows. Try to add these definitions into your info.plist. It works as expected. <key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeDescription</key> <string>XLSX input table document</string> <key>UTTypeTagSpecification</key> <dict> <key>public.filename

UIDocument Creation on iOS 11: reader is not permitted to access the URL

☆樱花仙子☆ 提交于 2019-12-03 05:55:19
Since iOS 11 I have encountered the following error every time I am creating a new document using UIDocument API: [ERROR] Could not get attribute values for item /var/mobile/Containers/Data/Application/XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX/Documents/myDoc-XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX.myFile (n) . Error: Error Domain=NSFileProviderInternalErrorDomain Code=1 "The reader is not permitted to access the URL." UserInfo={NSLocalizedDescription=The reader is not permitted to access the URL.} Unlike similar questions ( 1 , 2 , 3 ) on SO on this, I am not using UIDocumentBrowserViewController . I am

Creating custom UTI for use with airdrop, iOS

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am using this code in my info.plist: <key> CFBundleDocumentTypes </key> <array> <dict> <key> CFBundleTypeName </key> <string> AirDrop Profile File Type </string> <key> LSHandlerRank </key> <string> Default </string> <key> LSItemContentTypes </key> <array> <string> com.apple.customProfileUTI.customprofile </string> </array> </dict> </array> to declare a custom file type, going by the answer here , and have looked at the linked sample code, but couldn't follow it very well. I have a structure that I am converting to data and then

How do I export text from iOS Notes app to my app?

﹥>﹥吖頭↗ 提交于 2019-12-02 17:10:46
问题 I know this is possible and is something many big apps do, but I can't figure out among UTIs, extensions, UIActivityTypes, etc. which spell I need to use for this in particular. I'm trying to add my app to the list of apps that appear when you hit the export button in the Notes app on iOS because I want to be able to take a bunch of text inside a note and repeatedly and safely send it into my app. I want my app to appear in this list, exporting directly from Notes. There appear to be

Document Types vs. Exported and Imported UTIs

心不动则不痛 提交于 2019-12-02 14:18:10
Can anyone explain to me the difference between Document Types, Exported UTIs and Imported UTIs in Xcode 5.1? I want to be able to have my app automatically detect file type based on file extension. Which of these three would I need to implement in order to do that? aldoram5 You add a Document Type to register that your app can open that Document Type, this is simple when you select a known file type , but if the file type is not known, you must also define it in Imported UTIs . And if you are the defining your own File Type you must declare it in Exported UTIs and add that Document Type to be

How do I export text from iOS Notes app to my app?

a 夏天 提交于 2019-12-02 09:18:43
I know this is possible and is something many big apps do, but I can't figure out among UTIs, extensions, UIActivityTypes, etc. which spell I need to use for this in particular. I'm trying to add my app to the list of apps that appear when you hit the export button in the Notes app on iOS because I want to be able to take a bunch of text inside a note and repeatedly and safely send it into my app. I want my app to appear in this list, exporting directly from Notes. There appear to be duplicates of this question that are very old claiming that "exporting from Notes app is not possible for third

Is there a way to limit the Applications shown in a UIDocumentInteractionController?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 20:57:26
问题 I am currently displaying a UIDocumentInteractionController so that the user of my App can open a File in a different App. The controller pops up and lists the App with no problem. However, it also displays Cloud apps such as Dropbox (which I'm assuming associate themselves with nearly every valid file-type), which is quite annoying. Is there anyway that I can specify the controller to only display the App I want? 回答1: No, you cannot filter this list. You're not allowed to tell the user that