bang590 / JSPatch

JSPatch bridge Objective-C and Javascript using the Objective-C runtime. You can call any Objective-C class and method in JavaScript by just including a small engine. JSPatch is generally used to hotfix iOS App.
MIT License
11.36k stars 2.24k forks source link

Swift3 使用枚举UIViewContentMode.bottom时crash #648

Open lofzefjg opened 7 years ago

lofzefjg commented 7 years ago

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

bang590 commented 7 years ago

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

lofzefjg commented 7 years ago

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