获取对象类型(swift)

获取对象类型(swift)

by 伍雪颖

let date = NSDate()
let name = date.dynamicType
println(name)

let string = "Hello"
let name1 = string.dynamicType
println(name1)

posted @   lcchuguo  阅读(435)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示