Tag: API

URLEncoding for Objective-c

2010-01-18, Posted in Objective-c | 1 回复 | 查看全文>>

In Objective-c for network programming, we often need to convert the data to URLEncoding encoding, such as “+” sign encoded into “%2b”. Here we give an implementation.

//NSString+URLEncoding.h
#import 
 
@interface NSString (URLEncodingAdditions)
- (NSString *)URLEncodedString;
- (NSString *)URLDecodedString;
@end

查看全文…

标签: , ,