Latest 1.0.0
Homepage https://github.com/baishiyun/BSYNotificationCenter
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, UIKit
Authors

BSYNotificationCenter是对通知的简单封装,开发者不用再去关注移除这些问题,在方法中注册成功/接受成功后直接删除。,希望大家喜欢并Star支持

/**

单利

*/

+(BSYNotificationCenter *)shareCenter;

/** 添加通知

@param CenterName 通知名称

@param object 参数

@param SuccessRemove 注册成功后立即删除通知 (True:删除,False:不删除)

*/

-(void)bsy_RegisterCenterName:(nonnull NSNotificationName )CenterName object:(nullable id)object SuccessRemove:(BOOL)SuccessRemove;

/** 接受通知

@param goal 目标者

@param actionMothed 方法名称

@param CenterName 通知名称

@param SuccessRemove 接受成功后立即删除通知 (True:删除,False:不删除)

@param backBlock 接受后回调

*/

-(void)bsy_addGoal:(nonnull id)goal ActionMothed:(NSString )actionMothed CenterName:(NSNotificationName )CenterName queue:(NSOperationQueue)queue SuccessRemove:(BOOL)SuccessRemove BackBlock:(Successted)backBlock;

/** 删除目标中的所有通知

@param goal 目标

*/

-(void)bsy_removeGoal:(nonnull id)goal;

/**

删除具体的通知

@param goal 目标

@param CenterName 通知名称

*/

-(void)bsy_removeGoal:(nonnull id)goal CenterName:(nonnull NSNotificationName )CenterName;

Latest podspec

{
    "name": "BSYNotificationCenter",
    "version": "1.0.0",
    "license": "MIT",
    "summary": "BSYNotificationCenteru662fu5bf9u901au77e5u7684u7b80u5355u5c01u88c5uff0cu5f00u53d1u8005u4e0du7528u518du53bbu5173u6ce8u79fbu9664u8fd9u4e9bu95eeu9898uff0cu5728u65b9u6cd5u4e2du6ce8u518cu6210u529f/u63a5u53d7u6210u529fu540eu76f4u63a5u5220u9664.",
    "homepage": "https://github.com/baishiyun/BSYNotificationCenter",
    "source": {
        "git": "https://github.com/baishiyun/BSYNotificationCenter.git",
        "tag": "1.0.0"
    },
    "source_files": "BSYNotificationCenter/*.{h,m}",
    "requires_arc": true,
    "platforms": {
        "ios": "7.0"
    },
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "authors": {
        "u767du4ed5u4e91": "[email protected]"
    },
    "social_media_url": "https://github.com/baishiyun"
}

Pin It on Pinterest

Share This