CocoaPods trunk is moving to be read-only. Read more on the blog, there are 6 months to go.

TKMultipleDelegate 1.0.1

TKMultipleDelegate 1.0.1

Maintained by [sayaDev].



  • By
  • sayaDev

TKMultipleDelegate

CI Status Version License Platform

Introduction

iOS 多delegate,多代理,多委托实现方案

Installation

pod 'TKMultipleDelegate'

Tutorial

@property(nonatomic, strong) TKMultipleDelegate<Protocol1,Protocol2,Protocol3> *delegates;//Multiple Delegate
self.delegates = [[TKMultipleDelegate<Protocol1,Protocol2,Protocol3> alloc] init];
[self.delegates addDelegate:delegate1];
[self.delegates addDelegate:delegate2];
[self.delegates addDelegate:delegate3];
//add more delegate
if ([self.delegates respondsToSelector:@selector(call)]) {
	[self.delegates call];
}

Author

sayaDev, [email protected]

License

TKMultipleDelegate is available under the MIT license. See the LICENSE file for more info.