I use this string to build NSURL
https://123.com?p1=AA&p2=BB&p3=CC
and I want to remove the p1 & p2 paramter,just left the p3 only:
https://123.com?p3=CC
Is there any nicer way than the string compare&delete?
I use this string to build NSURL
https://123.com?p1=AA&p2=BB&p3=CC
and I want to remove the p1 & p2 paramter,just left the p3 only:
https://123.com?p3=CC
Is there any nicer way than the string compare&delete?
Get the url without query params:
create a QueryParams dictionary :
create final url :