`
stephen830
  • 浏览: 2964995 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Using ASIHTTPRequest in an iOS project

 
阅读更多

 

Using ASIHTTPRequest in an iOS project

转载自 http://allseeing-i.com/ASIHTTPRequest/Setup-instructions

 

1) Add the files

Copy the files you need to your project folder, and add them to your Xcode project. An overview of the ASIHTTPRequest source files appears here.

If you aren't sure which files you need, it's best to copy all the following files:

  • ASIHTTPRequestConfig.h
  • ASIHTTPRequestDelegate.h
  • ASIProgressDelegate.h
  • ASICacheDelegate.h
  • ASIHTTPRequest.h
  • ASIHTTPRequest.m
  • ASIDataCompressor.h
  • ASIDataCompressor.m
  • ASIDataDecompressor.h
  • ASIDataDecompressor.m
  • ASIFormDataRequest.h
  • ASIInputStream.h
  • ASIInputStream.m
  • ASIFormDataRequest.m
  • ASINetworkQueue.h
  • ASINetworkQueue.m
  • ASIDownloadCache.h
  • ASIDownloadCache.m

iPhone projects must also include:

  • ASIAuthenticationDialog.h
  • ASIAuthenticationDialog.m
  • Reachability.h (in the External/Reachability folder)
  • Reachability.m (in the External/Reachability folder)

2) Link with CFNetwork, SystemConfiguration, MobileCoreServices, CoreGraphics and zlib

Open the settings for your target by clicking on the blue bar at the very top of the Xcode sidebar:



 

Open the Build Phases tab, expand the box labeled Link Binary With Libraries then click the plus button.



 

Choose CFNetwork.framework from the list, and click Add:



 

Repeat the last two steps to add the following: SystemConfiguration.framework, MobileCoreServices.framework, CoreGraphics.framework and libz.dylib.

 

Using ASIHTTPRequest in a Mac OS X project

To use ASIHTTPRequest in a Mac project, you'll need to link against:

  • SystemConfiguration.framework + zlib (as above)
  • CoreServices.framework
    CFNetwork is part of the CoreServices framework on Mac OS X. Unless you are writing a console-based application, your application is probably already setup to link with CoreServices, but if not, simply add CoreServices.framework in the same way as described above.

 

 

 

  • 大小: 12.8 KB
  • 大小: 23.5 KB
  • 大小: 21 KB
分享到:
评论

相关推荐

    ASIHTTPRequest类库(IOS调用REST)

    ASIHTTPRequest 类库 ASIHTTPRequest功能很强大,主要特色如下: 通过简单的接口,即可完成向服务端提交数据和从服务端获取数据的工作 下载的数据,可存储到内存中或直接存储到磁盘中 能上传本地文件到服务端 可以...

    IOS ASIHttpRequest资源包

    ASIHTTPRequest是简单易用的,它封装了CFNetwork API。使得与Web服务器通信变得更简单。它是用Objective-C编写的,可以在MAC OS X和iPhone应用中使用。 它适用于执行基本的HTTP请求和互动(或者说是反馈)。...

    ASIHttpRequest ios开发框架

    ios开发框架 ASIHttpRequest 资源来源于网上 非原创

    改进版 iOS 网络请求类库ASIHTTPRequest

    1.改良版的 ASIHTTPRequest 不建议iOS 新手使用 2.有一定的iOS经验你会发现这个版本挺不错的! 谨慎使用,派别之争的 就别喷了无意义!

    iOS ASIHttpRequest 请求https

    iOS ASIHttpRequest 请求https

    ASIHttpRequest

    使用iOS SDK中的HTTP网络请求API,ASIHTTPRequest就是一个对CFNetwork API进行了封装,并且使用起来非常简单的一套API,

    ASIHTTPRequest

    ASIHTTPRequest,用于获取下载及其相关处理与应用的功能函数

    iOS的HTTP开发包ASIHTTPRequest

    ASI-HTTP-Request是通过CFNetwork API访问Web服务的一个开源封装类库包,...ASIHTTPRequest使用REST格式与Web服务进行通信,既支持基本的Http请求格式,也通过ASIFormDataRequest类可以很方便地提交POST数据和文件。

    [word]ios的ASIHTTPRequest学习.zip

    [word]ios的ASIHTTPRequest学习.zip

    IOS应用源码之【应用】-ASIHTTPRequest-强大的HTTP包装开源项目.rar

    IOS应用源码之【应用】-ASIHTTPRequest-强大的HTTP包装开源项目.rar

    详解iOS通过ASIHTTPRequest提交JSON数据

    使用iOS SDK中的HTTP网络请求API,相当的复杂,调用很繁琐,ASIHTTPRequest就是一个对CFNetwork API进行了封装,并且使用起来非常简单的一套API,用Objective-C编写,可以很好的应用在Mac OS X系统和iOS平台的应用...

    详解iOS – ASIHTTPRequest 网络请求

    使用 iOS SDK 中的 HTTP 网络请求 API,相当的复杂,调用很繁琐,ASIHTTPRequest 就是一个对 CFNetwork API 进行了封装,并且使用起来非常简单的一套 API,外号 “HTTP终结者”,用 Objective-C 编写,运行效率很高...

    ASIHttpRequest 下载显示有进度条的alert框

    该demo最主要的功能是在用ASIHttpRequest 下载,(当然同样也适用于上传),在弹出的alert框中显示下载(或是上传数据)的进度 在这里注意:如果是下载较大的文件,进度条会缓慢进行;相反如果下载的文件很小,那...

    asihttprequest带demo代码包

    asihttprequest是目前做移动平台游戏上比较便捷的http通信第三方库

    ASIHTTPRequest 源码

    ASIHTTPRequest 源码 、底层构架

Global site tag (gtag.js) - Google Analytics