实现自动上滚的TPKeyboardAvoidingScrollView
TPKeyboardAvoidingScrollView可用于scrollview中实现自动上滚,避免键盘遮盖住textfield、textview等控件。使用方法:将TPKeyboardAvoidingScrollView.h和TPKeyboardAvoidingScrollView.m添加到工程中,在需要使用键盘自动上滚的controller的xib文件中找到view,并修改其Class为TPKeyboardAvoidingScrollView。可以参照BSPickerController.xib。
2.67KB
文件大小:
评论区