Latest 1.0
Homepage https://github.com/beijiahiddink/BJNotification
License MIT
Platforms ios 7.0, requires ARC
Authors

CocoaPods
twitter
weibo
mail

什么是BJNotification

本项目高仿NSNotification框架。

如何安装

CocoaPods

platform :ios, '7.0'

target 'TargetName' do
pod 'BJNotification', '~> 1.0'
end

手动安装

git clone https://github.com/beijiahiddink/BJNotification.git
open BJNotification

该怎样去使用

使用方式大体与NSNotification使用类似,整个框架是线程安全的。

通知注册方法

[[BJNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveTip:) name:@"TipNotification" object:nil];

通知发送方法

[[BJNotificationCenter defaultCenter] postNotificationName:@"TipNotification" object:nil];

清理注册人

[[BJNotificationCenter defaultCenter] removeObserver:self];

最后

喜欢本项目的可以给我加星哦!

License

BJNotification is released under the MIT license. See LICENSE for details

Latest podspec

{
    "name": "BJNotification",
    "version": "1.0",
    "license": "MIT",
    "summary": "A Notification framework in iOS.",
    "homepage": "https://github.com/beijiahiddink/BJNotification",
    "authors": {
        "beijiahiddink": "[email protected]"
    },
    "source": {
        "git": "https://github.com/beijiahiddink/BJNotification.git",
        "tag": "1.0"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "7.0"
    },
    "source_files": [
        "BJNotificationFW/BJNotificationFW",
        "*.{h,m}"
    ]
}

Pin It on Pinterest

Share This