{"id":17091202,"url":"https://github.com/youngsoft/ystextinputkeyboardcategory","last_synced_at":"2025-04-12T22:31:43.848Z","repository":{"id":50461945,"uuid":"49192699","full_name":"youngsoft/YSTextInputKeyboardCategory","owner":"youngsoft","description":"UITextField,UITextView keyboard auto hidden and view auto moving offset。You need not write any code, just add UIView+YSTextInputKeyboard.h and UIView+YSTextInputKeyboard.m in project。","archived":false,"fork":false,"pushed_at":"2017-06-28T04:49:52.000Z","size":26,"stargazers_count":94,"open_issues_count":4,"forks_count":34,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-26T16:38:51.504Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/youngsoft.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":"2016-01-07T08:46:21.000Z","updated_at":"2022-07-29T09:48:12.000Z","dependencies_parsed_at":"2022-09-24T11:11:27.187Z","dependency_job_id":null,"html_url":"https://github.com/youngsoft/YSTextInputKeyboardCategory","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngsoft%2FYSTextInputKeyboardCategory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngsoft%2FYSTextInputKeyboardCategory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngsoft%2FYSTextInputKeyboardCategory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youngsoft%2FYSTextInputKeyboardCategory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youngsoft","download_url":"https://codeload.github.com/youngsoft/YSTextInputKeyboardCategory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248640328,"owners_count":21138019,"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-14T13:58:01.466Z","updated_at":"2025-04-12T22:31:43.823Z","avatar_url":"https://github.com/youngsoft.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YSTextInputKeyboardCategory\n\nUITextField,UITextView keyboard auto hidden and view auto moving offset。You need not write any code, just add UIView+YSTextInputKeyboard.h and UIView+YSTextInputKeyboard.m in project。\n\n## Overview\n  众所周知，iOS的UITextField,UITextView这两个控件在获得焦点时键盘会弹出，并且当这两个控件在屏幕的下方时有可能键盘会遮挡住视图，因此我们要\n  负责编码让控件失去焦点后键盘隐藏，以及让视图进行一定范围的移动。有了YSTextInputKeyboardCategory这个UIView的分类后，这两个控件的键盘\n  隐藏和自动移动功能都不再需要编码了。！！！你唯一要做的就是把UIView+YSTextInputKeyboard.h和UIView+YSTextInputKeyboard.m这两个文件加入到你的\n  工程中，什么也不要做。问题解决！！！\n## Function\n  这个分类默认扩展了UIView的一个只读属性kbMoving，这个属性可以可以设置键盘弹出并遮挡住视图时哪个视图会往上移动，并且移动多少值。系统默认设置\n  为当视图遮挡时其父视图往上移动，并且默认的偏移量是50.\n  您也可以实现自定义视图的键盘遮挡和移动机制，具体参考类定义头文件中的描述。\n  如果您要在UITableViewCell中使用UITextField,UITextView的话，请将UITextField或UITextView的.kbMoving.kbMovingView = tableView\n \n  \n  \n  \n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoungsoft%2Fystextinputkeyboardcategory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoungsoft%2Fystextinputkeyboardcategory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoungsoft%2Fystextinputkeyboardcategory/lists"}