I am using URL scheme in my iPhone app,from a page I switch user to safari,and a button click from Web page,I am reverting back to app At that time ,some parameters are passed b
NSString *query = [url query];
NSArray *queryComponents = [query componentsSeparatedByString:@"&"];
Now you got all strings in queryComponents like
param1=value
Now you can get first value like that
NSArray *firstParam = [[queryComponents objectAtIndex:0] componentsSeparatedByString:@"="];
[firstParam objectAtIndex:0] is the name of param
[firstParam objectAtIndex:1] is value of the param