JSPatch icon indicating copy to clipboard operation
JSPatch copied to clipboard

Swift3 使用枚举UIViewContentMode.bottom时crash

Open lofzefjg opened this issue 9 years ago • 2 comments

Swift3 使用枚举UIViewContentMode.bottom传入int时crash unrecognized selector funName: for instance xxxx

lofzefjg avatar Dec 04 '16 04:12 lofzefjg

?枚举本来就不支持,见文档

bang590 avatar Dec 05 '16 11:12 bang590

你好,文档已经看过,在swift项目中,如果用到了 swift 的枚举有没有办法解决? swift runtime有没有提交方法通过枚举名动态生成一个枚举对象返回给JS UIViewContentMode.init(rawValue: 0) 能不能把这里的UIViewContentMode动态一下 ^_^

lofzefjg avatar Dec 05 '16 15:12 lofzefjg