iPhone: How to send a HTTP request to a web service using Xcode

前端 未结 4 828
灰色年华
灰色年华 2021-02-02 03:03

How to send a HTTP request to a web service using Objective-C ? I need to fetch some data from my MySQL DB, so I need to send the request so I could fetch the data.

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-02 03:59

    ASIHTTPRequest is a great and simple framework, so I second the recommendations from other posts. To be complete though, you should also know that you can do this natively in Objective-C without another framework. Look at the Apple documentation for the NSURLConnection and NSURLConnectionRequest classes for background.

提交回复
热议问题