GitHub - aaayia/AYIPubSub: iOS中的一个订阅通知的小工具 · GitHub
Skip to content

aaayia/AYIPubSub

Folders and files

Repository files navigation

AYIPubSub

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

AYIPubSub is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'AYIPubSub'

Code

订阅事件

 [self scribe:@"viewDidLoad" callback: ^(NSString *name, id object){
           NSLog(@"收到通知---> %@ %@", name, object);
}];

推送事件

[self publish:@"viewDidLoad" withObject:@{@"view": self.view}];

Author

aaayia, twilightzzy@126.com

License

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

About

iOS中的一个订阅通知的小工具

Resources

License

Stars

Watchers

Forks

Packages

Contributors