简体   繁体   English

如何在iOS中使用自定义URL方案传递信息(通过注释)?

[英]How to pass information (through annotation) using custom url scheme in iOS?

I was trying to pass a NSDictionary using custom url scheme. 我试图使用自定义url方案传递NSDictionary。 I was wondering how to use the "Annotation" part of 我想知道如何使用“注释”部分

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString*)sourceApplication annotation:(id)annotation

I tried searching online, but without much success. 我尝试在线搜索,但没有太大的成功。

Can anyone kindly help me ? 有人可以帮助我吗?

Thanks. 谢谢。

The annotation parameter is only there for use with UIDocumentInteractionController (the "Open with..." Interface). annotation参数仅用于UIDocumentInteractionController (“打开方式...”接口)。 If you don't use that, you'd usually pass additional information as part of the URL (parameters). 如果您不使用它,您通常会将其他信息作为URL(参数)的一部分传递。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM