My app is being launched via a URL and I’ve added the following method which will be invoked upon launch:
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
annotation is described as being a property-list object supplied by the source application. I would like to examine the contents to see what information/data the source application is supplying. How can I do this?
Thank you
There is no need to convert the
annotationvariable from anidto something else. Simply call whatever methods that the object supports directly.Property lists can be an array, dictionary, string, number, boolean, date, and data.
To find out the type of the property list:
[annotation className],[annotation class], or[annotation classCode].All property lists will conform to the
descriptionandvalueForKeymethods.