■実装 Util.h #import <Foundation/Foundation.h> @interface Util : NSObject { } + (NSString *)urlencode:(NSString *)text; + (NSString *)urldecode:(NSString *)text; @end Util.m #import "Util.h" @implementation Util //encode + (NSString *)urlencode:(NSString *)text { CFStringRef strRef = CFURLCreateStringByAddingPercentEscapes( NULL, (CFStringRef)text, NULL, (CFStringRef)@"!*'();:@&=+$,/?%#[]~", kCFStri