Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

NSNotificationCenter的封装,使用方便,并且不用考虑释放的问题

Notifications You must be signed in to change notification settings

Benight/NotificationHelper

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

NotificationHelper

NSNotificationCenter的封装,使用方便,并且不用考虑释放的问题

示例

gif

使用方法

接收通知

[self addObserverForName:@"name" block:^(NSNotification * _Nullable note) {'Do Something'}];

发送通知

[self postNotificationName:@"name" object:@"object" userInfo:@"userInfo"];

优点

两句话就可以
不用考虑内存释放

About

NSNotificationCenter的封装,使用方便,并且不用考虑释放的问题

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.