项目作者: ZuoerdingCoder

项目描述 :
一个非常容易使用的多观察者模式的观察者中心,是一个很好的NSNotificationCenter的替代品
高级语言: Shell
项目地址: git://github.com/ZuoerdingCoder/ZEDObserversCenter.git
创建时间: 2017-11-30T06:14:31Z
项目社区:https://github.com/ZuoerdingCoder/ZEDObserversCenter

开源协议:MIT License

下载


ZEDObserversCenter

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

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

  1. pod "ZEDObserversCenter"

Usage

  1. 1. without key
  2. ADD_OBSERVER(protocol, observer)
  3. REMOVE_OBSERVER(protocol, observer)
  4. NOTIFY_OBSERVERS(protocol, func)
  5. 2. with a key
  6. ADD_OBSERVER_WITH_KEY(protocol, key, observer)
  7. REMOVE_OBSERVER_WITH_KEY(protocol, key, observer)
  8. NOTIFY_OBSERVERS_WITH_KEY(protocol, key, func)

Author

李超, 964139523@qq.com

License

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