我正在尝试这样做。但是它产生了编译错误:
#if DEBUG class BaseRule<T> : NSObject, RuleProtocol #else class BaseRule<T> : RuleProtocol #endif
omhiaaxx1#
我找到了解决办法:
#if DEBUG typealias RuleBase = NSObject #else typealias RuleBase = AnyObject #endif class BaseRule<T> : RuleBase, RuleProtocol {
1条答案
按热度按时间omhiaaxx1#
我找到了解决办法: