如果我在Swift中需要一个自定义类型,我可以typedef,我该怎么做呢?(有点像闭包语法类型定义)
typedef
发布于 2014-06-06 16:39:16
关键字typealias用来代替typedef
typealias
typealias CustomType = String var customString: CustomType = "Test String"
https://stackoverflow.com/questions/24077428
相似问题