{"id":32312640,"url":"https://github.com/meterwhite/taptapuibutton","last_synced_at":"2025-10-23T09:58:24.864Z","repository":{"id":61970335,"uuid":"556696233","full_name":"Meterwhite/TapTapUIButton","owner":"Meterwhite","description":"UIButton double click event extension(Objc, swift, xib, selected)","archived":false,"fork":false,"pushed_at":"2022-10-24T13:49:47.000Z","size":45,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T09:58:21.360Z","etag":null,"topics":["double-tap","tap-tap","uibutton-double-click"],"latest_commit_sha":null,"homepage":"","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/Meterwhite.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":"2022-10-24T10:41:12.000Z","updated_at":"2024-07-07T06:52:04.000Z","dependencies_parsed_at":"2022-10-24T12:15:23.724Z","dependency_job_id":null,"html_url":"https://github.com/Meterwhite/TapTapUIButton","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Meterwhite/TapTapUIButton","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meterwhite%2FTapTapUIButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meterwhite%2FTapTapUIButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meterwhite%2FTapTapUIButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meterwhite%2FTapTapUIButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Meterwhite","download_url":"https://codeload.github.com/Meterwhite/TapTapUIButton/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meterwhite%2FTapTapUIButton/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280598941,"owners_count":26357977,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["double-tap","tap-tap","uibutton-double-click"],"created_at":"2025-10-23T09:58:20.157Z","updated_at":"2025-10-23T09:58:24.857Z","avatar_url":"https://github.com/Meterwhite.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TapTapUIButton\n\u003e [修改Cocoapods源代码!](https://github.com/Meterwhite/ObjcHook4pod)\n## 介绍 Introduce\n* UIButton double click event extension(Objc, swift, xib, selected)\n* iOS按钮双击事件扩展\n* 点赞富一生.\n\n## 导入(Import)\n- Drag floder `UIButton+TapTap.h` to your project.\n```objc\n#import \"UIButton+TapTap.h\"\n```\n## CocoaPods\n```\npod 'TapTapUIButton'\n```\n\n## TapTapUIButton工作原理(How TapTapUIButton works)\n1. 第一次触摸按钮时状态变为isSelected = true，该状态默认持续2s.\n2. 超时后按钮回复原始状态isSelected = false.\n3. 未超时时触摸按钮，触发TapTap事件\n\u003e 1. When you touch the button for the first time, the status changes to isSelected = true. By default, the status lasts for 2s.\n\u003e 2. After timeout, the button returns to the original status isSelected = false.\n\u003e 3. A TapTap event is triggered when a button is touched without timeout.\n\n## 使用步骤(Steps to use)\n1. 配置按钮normal状态和selected状态下的UI样式\n2. 设置tt_enable为true\n3. 配置回调`tt_whenTapTaped:`(setTt_whenTapTaped:)或者`tt_addTarget:action:`\n\u003e 1. Set the UI style of the button in normal and selected state\n\u003e 2. Set tt_enable to true\n\u003e 3. Configure the callback ` tt_whenTapTaped: ` or ` tt_addTarget: action: `\n\n## 在UITableViewCell下工作(Work in UITableViewCell)\n- 在UITableViewCell下使用时，每次cell重新布局时应该调用一次`tt_refreshState` 。该方法确保按钮的不受cell重用机制的影响。\n\u003e - When used UITableViewCell, 'tt_refreshState' should be called each time the cell will dequeue. This method ensures that the button is not affected by the cell reuse mechanism.\n\n## 在XIB上使用(Use on the XIB)\n- 设置tt_enable为On(Set tt_enable to On)\n![sdl_register](https://raw.githubusercontent.com/Meterwhite/TapTapUIButton/main/ex1.png)\n\n## 更多(More)\n- 阅读源代码(Read the source code)\n\n## Email\n- app合作：meterwhite@outlook.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeterwhite%2Ftaptapuibutton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeterwhite%2Ftaptapuibutton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeterwhite%2Ftaptapuibutton/lists"}