Home > Articles > Mobile Application Development & Programming

  • Print
  • + Share This
This chapter is from the book

Exported Type Declarations

You can declare custom UTIs by providing an exported type declaration in your Info.plist property list. These type specifications mirror the ones in Figure 16-7, which is used for declaring document type support. Figure 16-7 shows a type declaration for JPEG images.

Again, you see each of the keys that can be retrieved via the UTTypeCopyDeclaration()function. Here, those items are specified to the system as a preliminary declaration. You can easily adapt this template to create your own custom file types and associated UTIs as needed. The most common reason for declaring a new type is to introduce support for file formats supported on other platforms.

Figure 16-7

Figure 16-7. Declaring the JPEG UTI.

  • + Share This
  • 🔖 Save To Your Account