清秋梧桐

导航

2012年11月19日 #

iOS网络通信基本步骤

摘要: //创建URL字符串 NSString *urlStr = @"http://localhost:8080/MyFirstServerForiOS/"; //通过字符串穿件URL NSURL *url = [NSURL URLWithString:urlStr]; //创建一个请求,制定请求访问的地址。 NSURLRequest *request = [NSURLRequestrequestWit... 阅读全文

posted @ 2012-11-19 14:21 清秋梧桐 阅读(290) 评论(0) 推荐(0) 编辑