Skip to content

CharlinFeng/TextView-KeyBoard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

image


文本域键盘躲避者


### 版本信息 .Swift 1.2
.Xcode 6.3
.基于MIT开源协议

请支持我,写满80个框架,从此‘封笔’


### 效果图 ![image](https://github.com/nsdictionary/Resource/blob/master/TextView-KeyBoard/1.gif)

### OC版本 之前写过OC版本的[TextField组键盘躲避者](https://github.com/nsdictionary/CoreTFManagerVC)




一句代码集成


####拖拽TextView+KeyBoard文件夹到您的项目,UITextView 无需继承任何基类!
####一句代码集成:
TextViewKeyBoardVC().avoid(inVC: self, scrollView: nil, textView: textView, offsetY: 10)

###更多配置:

  1. scrollView已经处理,请根据您的情况传入。

  2. offsetY是框架的特色,有的时候您的UITextView下方可能有提示文字或者事件按钮,你可以预留更多的空间。

  3. 键盘工具条已经封装,想要修改上面的文字如下:

     let tkb = TextViewKeyBoardVC()
     tkb.msg = "请输入意见"
    

4. 框架基于通知和代理,生命周期已经管理,你无需担心取消通知监听。
5. 框架设置了textView的代理,请不要自行再设置代理,需要代理?放心,closure已经考虑了这个问题:
    /** 开始编辑 */
    tkb.textViewWillBeginEditlosure = {textView in
        
    }
    
    /** 文字改变 */
    tkb.textViewDidChangeClosure = {textView in
        
    }
    
    /** 结束编辑 */
    tkb.textViewDidEndEditClosure = {textView in
    
    }




我的事业

西成的事业,渺小而艰难的求生存。前期我们专做全国的移动app外包。如果您能在信息上援助我们,我们万分感谢您的帮助!
西成:http://ios-android.cn
我的个人微博:http://weibo.com/charlin2015/


三群: 474377358
四群: 347446259
西部省市朋友加群号: 473185026(实名)
swift群: 467237044

About

textView的键盘躲避者,一句代码集成,灵活,好用。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages