afnetworking Questions

7

Solved

I'm totally stuck trying to run a project on the simulator using AFNetworking. I've used this dependency before on other projects, so I don't understand what is going wrong here. First, the error w...
Congou asked 2/4, 2015 at 16:15

5

Using Swift and NSURLSession. The NSError localizedDescription I get is very generic when I don't have internet connection (manually turned off wifi/cell network). It says "The operation couldn’t b...
Poseidon asked 18/3, 2015 at 12:28

6

Solved

I am a total newbie to ios programming. Cloned a friends project. When trying to build (after resolving a lot of other errors), I get the following error: ld: library not found for -lAFNetworking ...
Untruth asked 7/11, 2016 at 18:51

10

I have a collection view controller, which load image Async by URL. (Something like Instegram) I am looking for the best way to implement the part of the loading image. please tell me what do you t...
Tent asked 20/2, 2015 at 19:21

1

Solved

We suddenly experience a problem that somehow seems to be related to iOS 14 as we haven't had those errors in prior versions. At app start, we do quite a lot of network requests to different webser...
Mummy asked 19/3, 2021 at 13:0

5

How can I get the size(height/width) of an image from URL in objective-C? I want my container size according to the image. I am using AFNetworking 3.0. I could use SDWebImage if it fulfills my requ...
Tithonus asked 24/5, 2016 at 8:41

2

I have an app where I an supposed to have a websocket that listens only when the app is in the foreground I have tapped into the lifecycle notifications and call start() and stop accordingly. The a...
Alfredalfreda asked 30/7, 2020 at 18:7

5

I am using pod 'AFNetworking', '2.6.0'. But every time I am getting this error: Recently I updated my mac gems. After updating gems I am getting this error. Can you please any one help?
Maurits asked 25/5, 2016 at 9:34

4

Solved

I implemented a POST request with Alamofire with a custom header, because we work with OAuth2 and we have to send an access token in every request inside the header. In this case I have to use a cu...
Mummify asked 15/2, 2015 at 13:49

3

Solved

In AFNetworking 3 for invalid SSL certificate I used validatesCertificateChain = false , but now it seems that this field was removed and I can't make requests to my server. Here is class for req...
Adah asked 16/11, 2016 at 5:19

11

Solved

I am just starting to take a look at Mattt's wonderful new Alamofire swift networking library and am not quite sure how one would use it with custom headers. The code i am trying to convert from ...
Righthanded asked 5/8, 2014 at 16:31

15

Solved

I'm a newbie in obj-c and have been using asihttp for some of my projects. When doing a post request in asihttp its done this way. ASIFormDataRequest *request = [ASIFormDataRequest requestWithUR...
Inclusion asked 1/10, 2011 at 22:8

3

I have a few asynchronous, network tasks that I need to perform on my app. Let's say I have 3 resources that I need to fetch from a server, call them A, B, and C. Let's say I have to finish fetchin...
Serb asked 14/8, 2017 at 20:34

4

Solved

I installed AFNetworking using cocoapods. And then I included AFNetworking.h file in Prefix.pch file. Now while building my app it shows "AFNetworking.h" file not found error. I think it's an error...
Donough asked 15/10, 2014 at 4:14

2

Solved

I am trying to fetch data from an url https://dl.dropboxusercontent.com/s/2iodh4vg0eortkl/facts.json I am getting nil while converting nsdata to nsdictionary. I used the following code. and I am ...
Allen asked 7/2, 2018 at 10:29

6

I am using AFJSONRequestOperation to request a server and parse the returned JSON response, but while parsing, I got this error: NSDebugDescription = "JSON text did not start with array or object ...
Ludivinaludlew asked 17/3, 2013 at 0:37

5

Solved

I'm new to objective-c and i'm having a hard time with a AFNetworking. So the thing is that i want to make a simple POST request to a server who will send me back a salt. I'v make a simple app, in...
Automatize asked 15/10, 2015 at 10:24

13

Solved

Tried to run my existing app on iOS9 but getting failure while using AFURLSessionManager. __block NSURLSessionDataTask *task = [self.sessionManager dataTaskWithRequest:request completionHandler:^(...
Infrangible asked 9/6, 2015 at 17:58

3

Solved

I created a request using a domain name, e.g., http://www.google.com. But how could I get the exactly ip address which the framework used to connect to the server? I knew that the gethostbyname m...
Cyruscyst asked 20/7, 2015 at 4:30

3

Solved

I have some apps that are quite similar. Therefore, I'd like to create a or some private pod(s) containing all common reusable code. My first version contains some networking functionality that use...
Pinnatisect asked 13/9, 2013 at 7:51

21

I am running XCode 7, Swift 2.0, iOS 9. I want to install Alamofire in my project using Cocoapods. I have done the following: gem install cocoapods pod setup pod init Updated Podfile to: # U...
Timbering asked 19/9, 2015 at 22:33

2

Solved

While updating my application to support Background App Refresh I ran into problem with AFNetworking. I am getting NSPOSIXErrorDomain Code=53 "Software caused connection abort". The problem seems...

3

Solved

I have a situation where I need to access the raw response data for an AFJSONRequestOperation, from within the callback block which includes only NSHTTPURLResponse. I am able to get the statusCode ...

4

Solved

I can't find any answer to my question, may be I miss something... When I ask for a url, I need to know if the response comes from the cache or from the net. Is the status code 304 or 200 ? (but ...
Carnallite asked 29/8, 2012 at 14:50

9

Solved

I have set up the following code to save a file to the documents directory: NSLog(@"Saving File..."); NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.reddex...
Hurrah asked 4/12, 2011 at 15:58

© 2022 - 2025 — McMap. All rights reserved.