摘要: from:http://stackoverflow.com/questions/24016142/how-to-make-an-http-request-in-swiftYou can useNSURL,NSURLRequestandNSURLSessionorNSURLConnectionas y... 阅读全文
posted @ 2014-07-02 11:10 $walker 阅读(752) 评论(0) 推荐(0) 编辑
摘要: 这不是教程。当你碰到函数参数需要传递一个闭包(closure)时,一般是可以直接这么传递的(假定无返回):// 教程一般教你在参数位置传递closure:someMethod(arg1, arg2, arg3: { args -> Void in //codes here })// sw... 阅读全文
posted @ 2014-07-02 11:04 $walker 阅读(317) 评论(0) 推荐(0) 编辑