AYIPubSub 0.1.1

AYIPubSub 0.1.1

Maintained by ayi.



AYIPubSub 0.1.1

  • By
  • aaayia

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, [email protected]

License

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