-
This is multicast delegate.
-
Support multiple threads and genericity.
-
Add delegate
- (void)addDelegate:(DelegateType)delegate;
- (void)addDelegate:(DelegateType)delegate delegateQueue:(dispatch_queue_t)delegateQueue;
- Remove delegate
- (void)removeAllDelegates;
- (void)removeDelegate:(DelegateType)delegate;
- (void)removeDelegate:(DelegateType)delegate delegateQueue:(nullable dispatch_queue_t)delegateQueue;
- Download
MDMulticastDelegate
and try run example app
- Installation with CocoaPods
source 'https://github.com/Modool/cocoapods-specs.git'
platform :ios, '8.0'
target 'TargetName' do
pod 'MDMulticastDelegate'
end
- Installation with Carthage
github "Modool/MDMulticastDelegate"
- Manual Import
drag “MDMulticastDelegate” directory into your project
- Requires ARC
MDMulticastDelegate
- Demo FYI
- 2017.12.27 Add README and adjust project class name.
MDMulticastDelegate
is released under the MIT license. See LICENSE for details.