I'm having trouble googling this.
Does Objective-C have an equivalent method for encoding URI Component?
http://www.w3schools.com/jsref/jsref_encodeuricomponent.asp
This seems to be a very common use case but I can't find any documentation about it in Objective-C.
Thanks.
-[NSString stringByAddingPercentEscapesUsingEncoding:]
is the simplest way to do this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With