請問AFNetworking
緩存對於Objective-C仍然有效嗎?我一直試圖使用AFNetworking
緩存API響應,但它似乎不再工作。AFNetworking 2.0緩存問題
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
NSString *requestURL = [NSString stringWithFormat:@"http://ssssssssss.com"];
manager.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/html"];
[manager.requestSerializer setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData];
[manager GET:requestURL parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject).....
@Jasper感謝編輯 – AiOsN