Category Archives: Objective-C

Objective-C long URL parameter encoding

I was looking for a simple way to build URL’s with long parameter lists.
There were two problems that I ran into:

  1. The¬†CFURLCreateStringByAddingPercentEscapes method apparently isn’t completely fool proof.
  2. [NSString stringWithFormat] gets messy with a lot of parameters.

So I created a class to trivialize the handling of this circumstance.

The usage is quite simple: