【发布时间】:2018-05-26 15:58:15
【问题描述】:
我正在尝试将泛型类型与 switch case 语句相关联,但出现编译时错误。
enum TextEditEvent{
case editingBegin(UITextField)
case editingEnd(UITextField, UITextField?)
case textChanged<T>(String?, UILabel?, T, String) where T:Object, T:Updatable
}
任何帮助将不胜感激。
【问题讨论】: