get all iOS url schemes on device

后端 未结 5 606
你的背包
你的背包 2021-02-03 10:30

Is there a way to get all the url schemes of all the apps on a device? There has to be a central repository of them somewhere, maybe a plist?

5条回答
  •  囚心锁ツ
    2021-02-03 10:59

    I'm going to go out on a whim here and assume you are trying to do the following:

    1. You have a PDF in your app.
    2. You want to check (programmatically) to see if any other app can open PDF files.
    3. If so, open PDF using that app.

    If you want to do this, you don't have to do step 2 manually. As a matter of fact, you can't. However, you can use the UIDocumentInteractionController class to present a menu of compatible apps.

    This is the only way you can "check" for other apps installed on the phone. At least on iOS 7 and under.

提交回复
热议问题