Latest 0.1.0
Homepage https://github.com/pwf2006/PWFNotification
License MIT
Platforms ios 8.0
Authors

Because of the crash in using of Apple’s NSNotification without removing the observer in ‘dealloc’ function, I develop the PWFNotification.There is no need to remove observer for using PWFNotification.

Usage  

Anyone who wants to use PWFNotification can use:

pod 'PWFNotification'

in your podfile.You can use:

- (void)pwf_addObserver:(id)observer selector:(SEL)aSelector name:(NSString *)aName object:(id)anObject;

to register to PWFNotificationCenter.And also you maybe use:

- (void)pwf_postNotificationName:(NSString *)aName object:(id)object userInfo:(NSDictionary *)aUserInfo;

- (void)pwf_postNotificationName:(NSString *)aName object:(id)object;

- (void)pwf_postNotificationName:(NSString *)aName;

to post the PWFNotification to the observers.

If you want to post the PWFNotification in the main thread,you can set:

[PWFNotificationCenter defaultCenter].postNotificationInMainThread = YES;

If you don’t do this, the PWFNotification will be posted in the current thread.

When the App that uses the PWFNotification receives the memory warning, the PWFNotificationCenter will elimate the invalid observers.

Support

Any issue in using PWFNotification, you can send email to [email protected]

Licence

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

Latest podspec

{
    "name": "PWFNotification",
    "version": "0.1.0",
    "summary": "You no need to remove observer for using PWFNotification.",
    "description": "Because of the crash in using of Apple's NSNotification without removing the observer in dealloc,I develop the PWFNotification.You no need to remove observer for using PWFNotification.You can decide whether to post a notification in the main thread or in current thread,default in current thread.When received memory warning, the invalid observers and the notifications that saved in the notification center will be elimated.",
    "homepage": "https://github.com/pwf2006/PWFNotification",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "pwf2006": "[email protected]"
    },
    "source": {
        "git": "https://github.com/pwf2006/PWFNotification.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "PWFNotification/Classes/**/*"
}

Pin It on Pinterest

Share This