标签:swift ios 元组 tuples
在Swift中,获取元组中某个位置的值,可以通过三种方法:
let http404Error = (404, "Not Found") let (statusCode, statusMessage) = http404Error
let http404Error = (statusCode: 404, statusMessage: "Not Found")
Swift中访问元组,布布扣,bubuko.com
Swift中访问元组
原文地址:http://blog.csdn.net/twlkyao/article/details/30230555