I am trying to make a POST request which has HTTPHeader Fields and a HTTP body to the youtube API.
Previously in version 2.0 of AFNetworking, I used to do it this way which worked:
NSDictionary *parameters = @{@"snippet":…
how can I get the response string from failure block in AFNetworking 3.x,
In the 2.x version the way to do it was:
[manager GET:path parameters:parameters success:^(AFHTTPRequestOperation *operation, id responseObject) {
NSDictionary…
Does anyone have a nice working solution for getting the download progress when using the UIImageView+AFNetworking category and AFNetworking 3.0.
This category, which I did use for versions up till 3.0 has stopped working now.
Here is my own…
I added directories AFNetworking and UIKit+AFNetworking to project manager.
I use latest library 3.0.4
After I imported file AFNetworking.h in my class file .m.
I found a lot examples how to make request to url, but information is old.
How to make…
After reading the source code of AFURLRequestSerialization, I found that the author uses AFHTTPRequestSerializerObservedKeyPaths and NSStringFromSelector to get multiple keys such as allowsCellularAccess and cachePolicy, and uses itself as the…
I have created a class HTTPServiceProvider inherited from AFURLSessionManager. Added below code to get the data.
let configuration = NSURLSessionConfiguration.defaultSessionConfiguration()
let manager = AFURLSessionManager(sessionConfiguration:…
I'm trying to post data with x-www-form-urlencoded body.
Posting via postman, it is ok
But i cant do it via afnetworking 3. Here is my code
NSDictionary *parameters = @{@"login" : email,
@"password":…
I want to send an NSNumber created with a float with only two fraction digits.
So I'm creating a NSNumberFormatter with 2 Fraction Digits, but it doesn't respect the number of Fraction Digits.
NSNumberFormatter *formatter = [[NSNumberFormatter…
I want to upload pending data to a server and then download all data from the server database at the same button click. But I'm not getting how to show progress bar showing the progress of uploading/downloading.I tried using…
There are other questions with similar titles but none of them helped me. I've to send a PUT request to server in order to change the status of appointment so I've made this method -(void)appointmentStatusChangedTo:(NSString *)statusID…
I am using cocoapods to import AFNetworking,
I get the following error after I try pod install
[!] Unable to satisfy the following requirements:
AFNetworking (~> 3.0) required by Podfile
Specs satisfying the AFNetworking (~> 3.0) dependency were…
Is it possible in AFNetworking to cache image on disk for more than session? For example for a week or month. In my project i used SDWebImage and AFNetworking, but few days ago i found that AFNetworking has the same functionality as SDWebImage, so a…
I am trying to download an image using AFNetworking 3.0 doing this way:
- (UIImage *) loadImage:(NSString *) link
{
__block UIImage *image = [UIImage imageNamed:@"no_user_profile_pic.png"];
AFHTTPSessionManager *manager =…
I'm attempting to migrating from AFNetworking 2.0 to 3.0.
In the previous version I would create an AFHTTPRequestOperation and handle client SSL authentication in another block with setWillSendRequestForAuthenticationChallengeBlock.
For…
I need some help understanding why I'm seeing the following.
AFNetworking 3.0.4 on iOS9.x
If I grab the reachability manager with
AFNetworkReachabilityManager.sharedManager()
and then add a setReachabilityStatusChangeBlock then I get exactly what I…