Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: URL Types: Icon?

Tags:

url

xcode

iphone

The Xcode docs, explain that the CFBundleURLIconFile key contains the name of the icon image file (minus the extension) to be used for displaying URLs of this type.

My remaining questions are:

  1. What icon image should I use? Like, if the URL type is for another app, should I use that app's app icon?
  2. What size(s)? If many sizes, how do I name them so that the sizes are used correctly?
  3. Where is it displayed? I'm wondering for an iPhone app.
like image 850
ma11hew28 Avatar asked Oct 09 '12 02:10

ma11hew28


People also ask

How do I add a URL type in Xcode?

Register your URL schemeRegister your scheme in Xcode from the Info tab of your project settings. Update the URL Types section to declare all of the URL schemes your app supports, as shown in the following illustration. In the URL Schemes box, specify the prefix you use for your URLs.

How do I remove a URL type in Xcode?

I found a way to delete them: just open the Info. plist, delete the other rows and build/clean the project. You might have to restart XCode to see the changes.

Where is URL scheme in Xcode?

Setting up URL Scheme In Xcode, under your project configuration, select your target and navigates to Info tab. You'll see an URL Types section at the bottom.

How do I get iOS URL scheme?

Finding an App's Main URL Scheme Name First, you have to download the IPA file for the app, which requires macOS and Apple Configurator 2. When you finally find the IPA, you have to turn it into a ZIP file, show the contents of the app package, then hunt for the specific PLIST file that contains the scheme names.


1 Answers

  1. Apple does not specify this specifically, but my interpretation is that it should be an Icon representing the application which should/will open/handle URLs of this type.
  2. On OS X, the normal approach would be to use an Icon File (.icns). I suspect you should try that on your iOS app. If that doesn't work, duplicate the naming scheme of the the standard app icon files.
  3. Try viewing a PDF in Safari on iOS. If you have iBooks, it should show a button saying "Open in iBooks" and shows an icon next to it. This icon is the icon you would be setting.

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

like image 185
zachjs Avatar answered Sep 21 '22 13:09

zachjs