{"id":17772263,"url":"https://github.com/monkeydom/tcmdebugbuttonsview","last_synced_at":"2025-06-27T11:41:21.222Z","repository":{"id":11274378,"uuid":"13681148","full_name":"monkeydom/TCMDebugButtonsView","owner":"monkeydom","description":"easily add debug buttons to your iOS app","archived":false,"fork":false,"pushed_at":"2013-11-16T00:02:49.000Z","size":143,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-18T18:54:42.239Z","etag":null,"topics":[],"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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monkeydom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-18T15:06:47.000Z","updated_at":"2019-09-20T15:33:14.000Z","dependencies_parsed_at":"2022-09-19T09:11:53.191Z","dependency_job_id":null,"html_url":"https://github.com/monkeydom/TCMDebugButtonsView","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/monkeydom/TCMDebugButtonsView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeydom%2FTCMDebugButtonsView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeydom%2FTCMDebugButtonsView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeydom%2FTCMDebugButtonsView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeydom%2FTCMDebugButtonsView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monkeydom","download_url":"https://codeload.github.com/monkeydom/TCMDebugButtonsView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeydom%2FTCMDebugButtonsView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262249421,"owners_count":23281960,"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":[],"created_at":"2024-10-26T21:38:37.423Z","updated_at":"2025-06-27T11:41:21.172Z","avatar_url":"https://github.com/monkeydom.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TCMDebugButtonView - easily add debug buttons to your iOS app\n\n## Purpose\n* speed up the process of providing a user reachable button for features during development\n* let it hide itself if it isn't needed so it doesn't interfere with screenshots\n* give incentive to add debug facilities to your apps by making adding a rudimentary UI to reach them cheap\n\n\n## Requirements\n* iOS 5.x or later\n* ARC\n\n## Example Usage\nTo use it you just add ``TCMDebugButtonsView.h`` and ``TCMDebugButtonsView.m`` to your project.\n\nAdd ``#import TCMDebugButtonsView.h\"`` to either your precompiled header, or in every file you want to use it.\n\nUse either ``-[UIView TCM_addDebugButtonWithTitle:(NSString *)aTitle block:(void (^)(void)aBlock)]``\n\nor ``-[UIView TCM_addDebugButtonWithTitle:(NSString *)aTitle target:(id)aTarget action:(SEL)anAction]``\n\nto add named buttons to a view.\n\n\n```\n- (void)viewDidLoad\n{\n    [super viewDidLoad];\n\t// Do any additional setup after loading the view, typically from a nib.\n\t\n\t// the first call to TCM_addDebugButton… creates the debug button view implicitly\n\t\n\t// example one: add debug button to change the background color using blocks\n\t// remember to only use weak references, to not cause implicit retains with blocks\n\t__weak __typeof__(self) self_weak = self;\n\t[self.view TCM_addDebugButtonWithTitle:@\"Red Background\"  block:^{\n\t\tself_weak.view.backgroundColor = [UIColor redColor];\n\t}];\n\t\n\t// example two: add debug button to change the background back to white using target/action\n\t[self.view TCM_addDebugButtonWithTitle:@\"White Background\" target:self action:@selector(whiteBackgroundAction)];\n\t\n\t// example three: add debug button do present a view controller\n\t[self.view TCM_addDebugButtonWithTitle:@\"Present View Controller\"  block:^{\n\t\t[self_weak presentViewController:[[EXPNestedViewController alloc] init] animated:YES completion:NULL];\n\t}];\n\t\n}\n```\n```\n\t// want the debug view to be on the top\n\t[self.view TCM_addDebugButtonsViewOnEdge:CGRectMinYEdge];\n\n\t// add debug button to change dismiss\n\t// remember to only use weak references, to not cause implicit retains with blocks\n\t__weak __typeof__(self) self_weak = self;\n\t[self.view TCM_addDebugButtonWithTitle:@\"Dismiss\"  block:^{\n\t\t[self_weak dismissViewControllerAnimated:YES\n\t\t\t\t\t\t\t\t\t  completion:NULL];\n\t}];\n```\n\n## How it looks like\n![Example Debug Button View](http://f.cl.ly/items/2R3b3r0M1W0O1h0N3p1Z/DebugButtonView.jpg)\n\n## Releases\n### 1.0.1\n* fixed missing initialization for associated object key - thanks to jou for pointing that out\n* fixed mixed spaces/tabs whitespace\n\n### 1.0 \n* initial release\n\n## License\n\n* [MIT](http://www.opensource.org/licenses/mit-license.php)\n\n## Created by\n@monkeydom [twitter](http://twitter.com/monkeydom) [adn](http://alpha.app.net/monkeydom)\nof [TheCodingMonkeys](http://codingmonkeys.de)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkeydom%2Ftcmdebugbuttonsview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonkeydom%2Ftcmdebugbuttonsview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkeydom%2Ftcmdebugbuttonsview/lists"}