简体   繁体   中英

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

I was trying to pass a NSDictionary using custom url scheme. 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). If you don't use that, you'd usually pass additional information as part of the URL (parameters).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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