摘要:
1.URL中不允许出现空格和双引号,必须使用转义序列替换这些字符。NSString *search = @"Play some \"Abba\"";NSString *escaped = [search stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];//转义后的字符串是“Play%20some%20%22Abba%22”2.NSURLConnection 实例可以通过两种模式与Web服务器通信:同步模式(synchronously)和异步模式(asynchronously) 阅读全文