WeakProxy

@objc(ObjCWeakProxy)
public class WeakProxy : NSObject

弱引用代理类,用于解决NSTimer等循环引用target问题(默认NSTimer会强引用target,直到invalidate)

  • Undocumented

    Declaration

    Swift

    public weak var target: AnyObject?
  • Undocumented

    Declaration

    Swift

    public init(target: NSObject)
  • Undocumented

    Declaration

    Swift

    override public func forwardingTarget(for aSelector: Selector!) -> Any?
  • Undocumented

    Declaration

    Swift

    override public func responds(to aSelector: Selector!) -> Bool
  • Undocumented

    Declaration

    Swift

    override public func isEqual(_ object: Any?) -> Bool
  • Undocumented

    Declaration

    Swift

    override public var hash: Int { get }
  • Undocumented

    Declaration

    Swift

    override public var superclass: AnyClass? { get }
  • Undocumented

    Declaration

    Swift

    override public func isProxy() -> Bool
  • Undocumented

    Declaration

    Swift

    override public func isKind(of aClass: AnyClass) -> Bool
  • Undocumented

    Declaration

    Swift

    override public func isMember(of aClass: AnyClass) -> Bool
  • Undocumented

    Declaration

    Swift

    override public func conforms(to aProtocol: Protocol) -> Bool
  • Undocumented

    Declaration

    Swift

    override public var description: String { get }
  • Undocumented

    Declaration

    Swift

    override public var debugDescription: String { get }