使用此代码:
NSString *escapedString = (__bridge NSString *)
CFURLCreateStringByAddingPercentEscapes(NULL,
(__bridge CFStringRef)([dictionary objectForKey:[keyArray objectAtIndex:i]]),
NULL,
(CFStringRef)@"!*'();:@&=+$,/?%#[]",
kCFStringEncodingUTF8);
[POSTBody appendData:[[NSString stringWithFormat:@"%@=%@",
[keyArray objectAtIndex:i], escapedString]
dataUsingEncoding:NSUTF8StringEncoding]];
我收到此错误:
潜在泄漏到escapedString