[[AFHTTPSessionManager manager] GET:@"url" parameters:paramDic progress:^(NSProgress * _Nonnull downloadProgress) {
} success:^(NSURLSessionDataTask * _Nonnull task, NSDictionary *responseObject) { // 需要将responseObject的类型转化成自定类型
[responseObject writeToFile:@"Users/计算机名/Desktop/square.plist" atomically:YES];
} failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
}];
网友评论