//: Playground - noun: a place where people can play
import UIKit
let url = NSURL(string: "http://www.clien.net")
let task = NSURLSession.sharedSession().dataTaskWithURL(url!) {(data, response, error) in
println(NSString(data: data, encoding: NSUTF8StringEncoding))
}
task.resume()
//let url = NSURL(string: "http://www.stackoverflow.com")
let request = NSURLRequest(URL: url!)
func test(length : Float = 1.343) -> (yards : Float , cent : Float , meter : Float) {
var yards = length * 0.2222
var cent = length * 2.54
var meter = length * 0.0034
return (yards , cent , meter)
}
var lengthTuple = test(length: 2.4)
println(lengthTuple.yards)
println(lengthTuple.meter)
AWS S3 업로더 개발 하기 2부 (0) | 2016.05.08 |
---|---|
[IOS/Swift] 공부 중 따라 친 예제 기록 01 (0) | 2015.06.03 |
맥 OS 환경변수 설정 (0) | 2015.05.23 |