posts - 9,  comments - 0,  trackbacks - 0
          一點點積累吧,第一次寫blog
          最近在學(xué)習(xí)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應(yīng)用,我也在研究中,呵呵,希望對初學(xué)者有一點幫助
          posted on 2010-10-26 10:26 閱讀(337) 評論(0)  編輯  收藏

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


          網(wǎng)站導(dǎo)航:
           
          <2010年10月>
          262728293012
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

          常用鏈接

          留言簿(1)

          隨筆檔案

          文章分類

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 格尔木市| 西乡县| 长阳| 深州市| 迁安市| 华容县| 长乐市| 剑河县| 乌拉特后旗| 夏邑县| 陇西县| 吴旗县| 阿鲁科尔沁旗| 石门县| 习水县| 兴安县| 大英县| 邓州市| 和龙市| 云浮市| 吴江市| 喀喇沁旗| 彩票| 吴旗县| 宜丰县| 鲁甸县| 岳西县| 会泽县| 常熟市| 江门市| 曲麻莱县| 九寨沟县| 武川县| 五河县| 监利县| 合山市| 东兰县| 中江县| 柳江县| 开江县| 丰都县|