posts - 9,  comments - 0,  trackbacks - 0
          一點點積累吧,第一次寫blog
          最近在學習ASIHttpRequest
          先認識一下ASIHttpRequest
          如果要用到ASIHttpRequest先要向工程中加入CFNetwork.framework
          SystemConfiguration.framework, MobileCoreServices.framework, CoreGraphics.framework and libz.1.2.3.dylib
          然后再工程中加入所用到的包ASIHttpRequest
          接下來就可寫代碼了

          #import "TestAsiHttpreqeustViewController.h"
          #import 
          "ASIHTTPRequest.h"
          @implementation TestAsiHttpreqeustViewController


          -(void)viewDidLoad
          {
              ASIHTTPRequest
          *request=[ASIHTTPRequest requestWithURL:[NSURL URLWithString:@" http://172.16.20.14:8090/test.html"]];
              [request setDelegate:self];
              [request startSynchronous];
          }

          -(void)requestFinished:(ASIHTTPRequest *)request
          {
              NSString
          *responseString=[request responseString];
              NSLog(responseString);
          }

          這只是一個很簡單的ASIHttpRequest應用,我也在研究中,呵呵,希望對初學者有一點幫助
          posted on 2010-10-26 10:26 閱讀(338) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          <2010年10月>
          262728293012
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

          常用鏈接

          留言簿(1)

          隨筆檔案

          文章分類

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 海原县| 通海县| 卫辉市| 呈贡县| 师宗县| 宾阳县| 双鸭山市| 府谷县| 中超| 齐齐哈尔市| 门头沟区| 呼和浩特市| 江津市| 衡水市| 阳西县| 富宁县| 江达县| 理塘县| 洱源县| 那坡县| 波密县| 宁津县| 哈尔滨市| 莱州市| 科尔| 汉源县| 蓬溪县| 桐庐县| 密山市| 股票| 乌什县| 信宜市| 广德县| 彭州市| 都兰县| 收藏| 淮南市| 夏邑县| 沙河市| 垣曲县| 常州市|