变量报错

来源:互联网 发布:sql union替代 join 编辑:程序博客网 时间:2024/06/06 11:42


    [_SwiftValue integerValue]: unrecognized selector sent to instance 0x17405cbc0


    编译的时候没有报错,运行时报错

   swift 是强类型语言,我的这个错误是因为一个枚举值没有获得rawValue,直接赋值给数组了