Xcode: URL Types: Icon?

In the Xcode docs, explain that the CFBundleURLIconFile key contains the name of the icon image file (minus the extension) that will be used to display this type of URL.

My remaining questions are:

  • Which icon image should I use? For example, if the URL type is for another application, should I use the application’s application icon?
  • What sizes? If there are many sizes, what should they be called so that the sizes are used correctly?
  • Where is it displayed? I am wondering for an iPhone app.
+4
source share
1 answer
  • Apple does not indicate this specifically, but my interpretation is that it should be an icon representing an application that should / will open / process this type of URL.
  • In OS X, the usual approach would be to use Icon File (.icns). I suspect you should try this in your iOS app. If this does not work, duplicate the naming scheme for standard application icon files.
  • Try viewing the PDF file in Safari on iOS. If you have iBooks, it should show the "Open in iBooks" button and show an icon next to it. This icon is the icon you want to install.

I hope this is thorough enough to answer your questions. If not, please explain what is needed for clarification.

+2
source

Source: https://habr.com/ru/post/1438529/