GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - crazycodeboy/KeyboardObserver: Ios键盘输入框自适应

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
KeyboardObserver.xcodeproj
KeyboardObserver.xcodeproj
 
 
KeyboardObserver
KeyboardObserver
 
 
KeyboardObserverTests
KeyboardObserverTests
 
 
KeyboardObserverUITests
KeyboardObserverUITests
 
 
res
res
 
 
README.md
README.md
 
 

Repository files navigation

#Ios软盘和输入框自适应

效果演示:

image

###特点: 1.当软盘弹出时自动控制输入框的显示位置以防止被软盘遮住
2.当触控输入框以外的位置时或按软盘的回车键时,软盘隐藏,界面恢复
3.支持对整个页面所有的输入框添加监听和移除监听
4.支持对指定输入框的添加监听和移除监听
5.使用简单,只需一行代码便可完成监听配置

###使用说明: 1.将KeyboardObserver.m和KeyboardObserver.h导入项目中
2.导入头文件#import "KeyboardObserver.h"
3.调用相应方法为输入框绑定监听 ###相关方法说明:

-(void)addGlobalKeyboardObserver
为界面中所有的输入框添加键盘观察器,回车键监听,触控其他区域监听, 建议在 'viewDidAppear' 方法中应用。
-(void)removeGlobalKeyboardObserver
为界面中所有的输入框移除键盘观察器,回车键监听,触控其他区域监听,建议在 'viewDidDisappear' 方法中应用。
- (void)addKeyboardObserver
为指定输入框添加键盘观察器,回车键监听,触控其他区域监听,建议在 'viewDidAppear' 方法中应用。
- (void)removeKeyboardObserver
为指定输入框移除键盘观察器,回车键监听,触控其他区域监听,建议在 'viewDidDisappear' 方法中应用。
- (void)addSimpleKeyboardObserver
为指定输入框廷加键盘观察器,触控其他区域监听,建议在 'viewDidDisappear' 方法中应用。
- (void)removeKeyboardObserver
为指定输入框移除键盘观察器,触控其他区域监听,建议在 'viewDidDisappear' 方法中应用。对应的移除监听方法请调用。

About

Ios键盘输入框自适应

Resources

Readme
Activity

Stars

4 stars

Watchers

3 watching

Forks

5 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.