Does ASIHTTPRequest ARC support?

I need to make a call to the web rest service from my ios application, I used to use ASIHTTPRequest without ARC in xcode4, but now I have enabled ARC in my application in xcode4.2, please suggest what should I do? is there anything else i can use to make a web service call?

+4
source share
1 answer

If you included the ASI source in your project, mark the ASI files with -fno-objc-arc in the compilation settings for each file. If you include it as a static library, you do not need to do anything.

Note that if there are method calls in the ASI that don’t obey naming conventions for property rights (e.g. copy / new / alloc, etc.), you will need to reduce some arguments to method calls.

See the next section of this article for more information: http://www.learn-cocos2d.com/2011/11/everything-know-about-arc/#third-party-libraries

+10
source

Source: https://habr.com/ru/post/1400518/


All Articles