{"id":21031844,"url":"https://github.com/zekunyan/ttgnotificationguard","last_synced_at":"2025-05-15T12:31:22.155Z","repository":{"id":56923332,"uuid":"63534393","full_name":"zekunyan/TTGNotificationGuard","owner":"zekunyan","description":"Auto remove the observer from NSNotificationCenter after the oberser dealloc","archived":false,"fork":false,"pushed_at":"2016-07-20T15:56:30.000Z","size":38,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-29T23:17:32.484Z","etag":null,"topics":["guard","ios","notification","objective-c"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zekunyan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-17T13:54:35.000Z","updated_at":"2022-05-17T16:41:03.000Z","dependencies_parsed_at":"2022-08-21T05:20:36.528Z","dependency_job_id":null,"html_url":"https://github.com/zekunyan/TTGNotificationGuard","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekunyan%2FTTGNotificationGuard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekunyan%2FTTGNotificationGuard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekunyan%2FTTGNotificationGuard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekunyan%2FTTGNotificationGuard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zekunyan","download_url":"https://codeload.github.com/zekunyan/TTGNotificationGuard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254341077,"owners_count":22054981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["guard","ios","notification","objective-c"],"created_at":"2024-11-19T12:32:55.315Z","updated_at":"2025-05-15T12:31:19.921Z","avatar_url":"https://github.com/zekunyan.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TTGNotificationGuard\n\n[![CI Status](http://img.shields.io/travis/zekunyan/TTGNotificationGuard.svg?style=flat)](https://travis-ci.org/zekunyan/TTGNotificationGuard)\n[![Version](https://img.shields.io/cocoapods/v/TTGNotificationGuard.svg?style=flat)](http://cocoapods.org/pods/TTGNotificationGuard)\n[![License](https://img.shields.io/cocoapods/l/TTGNotificationGuard.svg?style=flat)](http://cocoapods.org/pods/TTGNotificationGuard)\n[![Platform](https://img.shields.io/cocoapods/p/TTGNotificationGuard.svg?style=flat)](http://cocoapods.org/pods/TTGNotificationGuard)\n\n## What\nAuto remove the observer from NSNotificationCenter after the oberser dealloc, base on [TTGDeallocTaskHelper](https://github.com/zekunyan/TTGDeallocTaskHelper).\n\n## Requirements\niOS 6 and later.\n\n## Installation\n\nTTGNotificationGuard is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"TTGNotificationGuard\"\n```\n\n## Usage\n1. TTGNotificationGuard is default off, so you must turn it on first.\n```\n#import \"NSNotificationCenter+TTGNotificationGuard.h\"\n\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {\n    // Enable the TTGNotificationGuard\n    [NSNotificationCenter ttg_setTTGNotificationGuardEnable:YES];\n    return YES;\n}\n```\n\n2. No more need to do. Just start coding as usual :)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Author\n\nzekunyan, zekunyan@163.com\n\n## License\n\nTTGNotificationGuard is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekunyan%2Fttgnotificationguard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzekunyan%2Fttgnotificationguard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekunyan%2Fttgnotificationguard/lists"}