StandaloneDelegate
Swift
open class StandaloneDelegate : NSObject
Base class that helps to build standalone delegate handlers. Class will live as long as bound target lives.
Example Use: class DocumentSharingDelegateHandler: StandaloneDelegate, PDFDocumentSharingViewControllerDelegate { (your delegate implementations) } // The StandaloneDelegateContainer will automatically manage the lifetime of this helper // It will be deallocated as soon as sharingController is deallocated. let handler = DocumentSharingHandler(delegateTarget: sharingController) sharingController.delegate = handler
-
Undocumented
Declaration
Swift
@discardableResult public init(delegateTarget: AnyObject)