iPhone - 从网页打开应用程序 [英] iPhone - Open Application from Web Page

查看:94
本文介绍了iPhone - 从网页打开应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这听起来很奇怪。事实上,这对我来说听起来像是一种安全风险。但是,我发誓我看过你可以点击链接的网页,它会在iPhone上打开应用程序商店。

This sounds odd. In fact, it sounds like a security risk to me. However, I would swear that I have seen web pages that you can click a link on and it opens the app store on the iPhone.

我的问题是,是否有可能通过网页启动任何应用程序?参数可以传递给应用程序吗?我不需要技术细节。我很好奇是否有可能。

My question is, is it possible to launch any application from through a web page? Can parameters be passed to the application? I do not need technical details. I'm just curious if it is possible.

谢谢,

推荐答案

是。从通过Info.plist控制和配置应用程序 - 通过以下方式调用您的iPhone应用程序网址


按网址调用您的iPhone应用程序



CFBundleURLTypes键允许您指定将导致iPhone切换到您的应用程序的URL方案。不,您无法覆盖内置应用程序的方案。

Invoking your iPhone application by URL

The CFBundleURLTypes key allows you to specify URL schemes that will cause the iPhone to switch to your application. No, you can't override the schemes for the built-in applications.

如果您的应用程序是使用名为scheme的URL类型启动的,那么您也可以提供不同的启动图像Default-scheme.png而不是常规的Default.png。

If your application is launched using a URL type named scheme, then you can also provide a different startup image "Default-scheme.png" instead of the regular "Default.png".

参见iPhone文件扩展名应用关联了解更多详情。

这篇关于iPhone - 从网页打开应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆