개발은 너무해

Multi Return Values 본문

iOS-Develop(Swift)

Multi Return Values

까칠 평생초보 2016.08.12 10:56

func MultiReturn() -> (String, Int, NSDate) {

    let name = "MultiReturn"

    let age = 25

    let date = NSDate()


    return (name, age, date)

}


print(MultiReturn().0)

print(MultiReturn().1)

print(MultiReturn().2)



0 Comments
댓글쓰기 폼