я получаю следующие утечки памяти для веб-просмотра
initWebUILocalStorageSupport
MobileQuickLookLibrary()
и вот мой код, я не знаю, что мне не хватает.
NSMutableURLRequest *theRequest = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:10.0f];
[theRequest setHTTPMethod:@"POST"];
NSData *data = [self GenerateData];
if (data) {
[theRequest setHTTPBody:data];
}
[webView loadRequest:theRequest];
Надеюсь, мой вопрос ясен. Спасибо
РЕДАКТИРОВАТЬ: добавление кода для GenerateData
NSArray * results = [self.managedObjectContext executeFetchRequest:request error:&error];
if (!error) {
for (Items *item in results) {
}
NSString *theBodyString = [[CJSONSerializer serializer] serializeDictionary:theRequestDictionary];
theBodyData = [theBodyString dataUsingEncoding:NSUTF8StringEncoding];
}
return theBodyData;