{"id":28610198,"url":"https://github.com/crazycodeboy/keyboardobserver","last_synced_at":"2025-09-17T16:24:17.095Z","repository":{"id":66194732,"uuid":"46920072","full_name":"crazycodeboy/KeyboardObserver","owner":"crazycodeboy","description":"Ios键盘输入框自适应","archived":false,"fork":false,"pushed_at":"2015-12-04T07:57:34.000Z","size":379,"stargazers_count":4,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-11T22:52:34.176Z","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/crazycodeboy.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":"2015-11-26T10:30:06.000Z","updated_at":"2016-07-19T13:59:12.000Z","dependencies_parsed_at":"2023-02-20T00:01:00.502Z","dependency_job_id":null,"html_url":"https://github.com/crazycodeboy/KeyboardObserver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/crazycodeboy/KeyboardObserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycodeboy%2FKeyboardObserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycodeboy%2FKeyboardObserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycodeboy%2FKeyboardObserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycodeboy%2FKeyboardObserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazycodeboy","download_url":"https://codeload.github.com/crazycodeboy/KeyboardObserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycodeboy%2FKeyboardObserver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275623431,"owners_count":25498335,"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-09-17T02:00:09.119Z","response_time":84,"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":[],"created_at":"2025-06-11T22:41:50.412Z","updated_at":"2025-09-17T16:24:17.089Z","avatar_url":"https://github.com/crazycodeboy.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Ios软盘和输入框自适应  \n\r\n效果演示：  \n\n![image](https://github.com/crazycodeboy/KeyboardObserver/blob/master/res/%E8%BD%AF%E7%9B%98%E9%94%AE%E7%9B%98%E8%87%AA%E9%80%82%E5%BA%94.gif)\n \n###特点：\n1.当软盘弹出时自动控制输入框的显示位置以防止被软盘遮住  \n2.当触控输入框以外的位置时或按软盘的回车键时，软盘隐藏，界面恢复   \n3.支持对整个页面所有的输入框添加监听和移除监听    \n4.支持对指定输入框的添加监听和移除监听    \n5.使用简单，只需一行代码便可完成监听配置  \n\n###使用说明： \n1.将KeyboardObserver.m和KeyboardObserver.h导入项目中   \n2.导入头文件#import \"KeyboardObserver.h\"  \n3.调用相应方法为输入框绑定监听\n###相关方法说明：\n \n`-(void)addGlobalKeyboardObserver`  \n为界面中所有的输入框添加键盘观察器，回车键监听，触控其他区域监听, 建议在 'viewDidAppear' 方法中应用。  \n`-(void)removeGlobalKeyboardObserver`  \n为界面中所有的输入框移除键盘观察器，回车键监听，触控其他区域监听，建议在 'viewDidDisappear' 方法中应用。  \n`- (void)addKeyboardObserver`\t  \n为指定输入框添加键盘观察器,回车键监听，触控其他区域监听，建议在 'viewDidAppear' 方法中应用。   \n`- (void)removeKeyboardObserver`  \n为指定输入框移除键盘观察器，回车键监听，触控其他区域监听，建议在 'viewDidDisappear' 方法中应用。   \n`- (void)addSimpleKeyboardObserver`    \n 为指定输入框廷加键盘观察器，触控其他区域监听，建议在 'viewDidDisappear' 方法中应用。   \n`- (void)removeKeyboardObserver`    \n 为指定输入框移除键盘观察器，触控其他区域监听，建议在 'viewDidDisappear' 方法中应用。对应的移除监听方法请调用。   ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazycodeboy%2Fkeyboardobserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazycodeboy%2Fkeyboardobserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazycodeboy%2Fkeyboardobserver/lists"}