iPhone apps: Can I open an app from a link in a website?

后端 未结 3 2036
离开以前
离开以前 2020-11-27 11:05

I\'m a newbie iPhone developer, writing an app that will kind of be the \"mobile version\" of a website.

I\'m wondering whether it\'s possible to launch my app from

3条回答
  •  天涯浪人
    2020-11-27 11:34

    Certain apps have URL schemes that will launch them. If an app has published this scheme (or if you dig around in their bundle) you can launch it. For example, a hypothetical twitter app might launch with a twitterapp://here+is+my+tweet URL. If you preload your app with the correct URL scheme, you can do this for yours, too.

    Here's a sample URL scheme from the info.plist:

    CFBundleURLTypes
    
        
            CFBundleURLName
            com.standalone.cooltwitterapp
            CFBundleURLSchemes
            
                twitterapp
            
        
    
    

提交回复
热议问题