所用方法都是比较老的方法,用的是NSURLConnection
GET
var url:NSURL!
url = NSURL(string:ApiHost+"User/\(self.UserId)")
let request = NSMutableURLRequest(URL:url)
request.HTTPMethod="Get"
let loadDataSourceQueue = NSOperationQueue();
所用方法都是比较老的方法,用的是NSURLConnection
GET
var url:NSURL!
url = NSURL(string:ApiHost+"User/\(self.UserId)")
let request = NSMutableURLRequest(URL:url)
request.HTTPMethod="Get"
let loadDataSourceQueue = NSOperationQueue();