这是否可能在Swift中创建一个枚举的元组?
原文链接:https://www.f2er.com/swift/320831.html我想建立像:
@H_403_3@enum ErrorCode: (Int,String) { case Generic_Error = (0,"Unknown") case DB_Error = (909,"Database") }但它不编译…有没有办法获得类似的结果?
我想建立像:
@H_403_3@enum ErrorCode: (Int,String) { case Generic_Error = (0,"Unknown") case DB_Error = (909,"Database") }但它不编译…有没有办法获得类似的结果?