{"id":21031842,"url":"https://github.com/zekunyan/ttgkvoguard","last_synced_at":"2025-06-30T21:08:48.616Z","repository":{"id":56923320,"uuid":"64682553","full_name":"zekunyan/TTGKVOGuard","owner":"zekunyan","description":"Auto remove KVO observer from object after it dealloc.","archived":false,"fork":false,"pushed_at":"2016-08-02T17:18:48.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T19:47:02.889Z","etag":null,"topics":["guard","ios","kvo","objective-c"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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-08-01T16:17:03.000Z","updated_at":"2022-05-17T16:41:25.000Z","dependencies_parsed_at":"2022-08-21T05:20:18.227Z","dependency_job_id":null,"html_url":"https://github.com/zekunyan/TTGKVOGuard","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zekunyan/TTGKVOGuard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekunyan%2FTTGKVOGuard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekunyan%2FTTGKVOGuard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekunyan%2FTTGKVOGuard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekunyan%2FTTGKVOGuard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zekunyan","download_url":"https://codeload.github.com/zekunyan/TTGKVOGuard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekunyan%2FTTGKVOGuard/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262850291,"owners_count":23374356,"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","kvo","objective-c"],"created_at":"2024-11-19T12:32:54.988Z","updated_at":"2025-06-30T21:08:48.588Z","avatar_url":"https://github.com/zekunyan.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TTGKVOGuard\n\n[![CI Status](http://img.shields.io/travis/zekunyan/TTGKVOGuard.svg?style=flat)](https://travis-ci.org/zekunyan/TTGKVOGuard)\n[![Version](https://img.shields.io/cocoapods/v/TTGKVOGuard.svg?style=flat)](http://cocoapods.org/pods/TTGKVOGuard)\n[![License](https://img.shields.io/cocoapods/l/TTGKVOGuard.svg?style=flat)](http://cocoapods.org/pods/TTGKVOGuard)\n[![Platform](https://img.shields.io/cocoapods/p/TTGKVOGuard.svg?style=flat)](http://cocoapods.org/pods/TTGKVOGuard)\n\n## What\n\nAuto remove KVO observer from object after the object or the observer dealloc, base on [TTGDeallocTaskHelper](https://github.com/zekunyan/TTGDeallocTaskHelper).\n\n## Requirements\n\niOS 6 and later.\n\n## Installation\n\nTTGKVOGuard is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"TTGKVOGuard\"\n```\n\n## Usage\n\n1. TTGKVOGuard is default off, so you must turn it on first.\n```\n#import \u003cTTGKVOGuard/NSObject+TTGKVOGuard.h\u003e\n\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {\n    // Enable the TTGKVOGuard\n    [NSObject ttg_setTTGKVOGuardEnable: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\nTTGKVOGuard 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%2Fttgkvoguard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzekunyan%2Fttgkvoguard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekunyan%2Fttgkvoguard/lists"}