如何注册应用程序以响应自定义URL方案打开请求? [英] How to register an app to respond to a custom URL scheme opening request?

查看:68
本文介绍了如何注册应用程序以响应自定义URL方案打开请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

喜欢这样:

NSString *stringURL = @"appname://";
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];

我稍微记得有必要为Info.plist写一个值键。如何?

I slightly remember it was necessary to write a value-key to Info.plist. How?

推荐答案

将此添加到plist 。

Add this to plist .

该应用程序将由@readtext://url

The app will by called by @"readtext://" url

这篇关于如何注册应用程序以响应自定义URL方案打开请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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