Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does ASIHTTPRequest support ARC?

Tags:

ios

I have to make a rest web service call from my ios app, earlier I used ASIHTTPRequest with no ARC in xcode4, but now I have enabled ARC in my app in xcode4.2, please suggest what should I do? is there anything else which i can use to perform web service call?

like image 295
Abhishek Sahay Avatar asked Dec 28 '22 04:12

Abhishek Sahay


1 Answers

If you're including the ASI source in your project, then mark the ASI files with -fno-objc-arc in the compile settings for each file. If you're including it as a static library, then you don't need to do anything.

Note that if there are method calls in ASI that don't obey the naming conventions for ownership (e.g. copy/new/alloc etc...) they you'll need to bridge some of the arguments in your method calls.

Check out the following section of this article for more info: http://www.learn-cocos2d.com/2011/11/everything-know-about-arc/#third-party-libraries

like image 120
ikuramedia Avatar answered Jan 10 '23 02:01

ikuramedia