encodeURIComponent equivalent object-c
javascript, objective-c
Solution
`-[NSString stringByAddingPercentEscapesUsingEncoding:]` is the simplest way to do this.
Problem
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.