更改UIDocumentInteractionController图标 [英] Change UIDocumentInteractionController Icons

查看:248
本文介绍了更改UIDocumentInteractionController图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何更改在表格视图中显示的图标。

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

我查看了 apple.com UIDocumentInteractionController 的文档,有任何成功编辑我的plist。如果有人知道如何做到这一点请帮助。

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.

谢谢

推荐答案

注册文件类型您的应用支持介绍了如何在应用中注册自定义文件类型及其图标。

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

因此,如果在plist的 LSItemContentTypes 数组中使用com.example.myformat作为UTI类型, $ c> UTI 属性的文档交互控制器的同一个字符串com.example.myformat,那么应该使用你的图标。

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.

这篇关于更改UIDocumentInteractionController图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆