I have a URL like myApp://action/1?parameter=2&secondparameter=3
With the property query I get following part of my URL
parameter=2&secondparameter=3
Is there any way easy to put this in a NSDictionary
or an Array
?
Thx a lot
iphonensurlobjective c
I have a URL like myApp://action/1?parameter=2&secondparameter=3
With the property query I get following part of my URL
parameter=2&secondparameter=3
Is there any way easy to put this in a NSDictionary
or an Array
?
Thx a lot
Best Answer
You can use
queryItems
inURLComponents
.Swift
Alternatively, you can add an extension on URL to make things easier.
You can then access the parameter by its name.