Change UIDocumentInteractionController Icons

旧巷老猫 提交于 2019-12-31 05:25:14

问题


I was wondering how I can change the icons that show up in the table view.

I looked at the documentation for UIDocumentInteractionController on apple.com but I didn't have any success editing my plist. If someone knows how to do this please help.

Thank you


回答1:


Registering the File Types Your App Supports describes how to register custom file types together with their icons in an app.

So if you use "com.example.myformat" as UTI type in the LSItemContentTypes array of the plist, and set the UTI property of the document interaction controller to the same string "com.example.myformat", then your icon should be used.



来源:https://stackoverflow.com/questions/11912401/change-uidocumentinteractioncontroller-icons

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!