【发布时间】:2015-02-18 17:46:51
【问题描述】:
我在 Swift 中有这个枚举
enum Direction: Int{
case Left2Right = 0, Right2Left
}
还有这个协议
@objc protocol CellDelegate : NSObjectProtocol{
optional func has(direction:SwipeDirection) -> Bool
}
我收到此错误
Method cannot be marked @objc because the type of the parameter cannot be represented in Objective-C
谁能告诉我为什么会出现这个错误以及如何解决它? 谢谢!
【问题讨论】: