我使用了以下法典:
NSURLConnection *theConnection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
if (theConnection)
{
responseData = [[NSMutableData data] retain];
}
参考法。 但是,我从以下几个方面发现了一个记忆泄漏错误:
responseData = [[NSMutableData data] retain];
How do I release theConnection?