今天推荐一个好用的三方库MLInputDodger
使用方法:
- (void)viewDidAppear:(BOOL)animated{
[ super viewDidAppear:animated];
//注册
[ self.view registerAsDodgeViewForMLInputDodger];
//距离键盘距离
self.view.shiftHeightAsDodgeViewForMLInputDodger = 60;
}
本文介绍了一个实用的第三方库 MLInputDodger 的使用方法,包括如何注册视图以响应键盘弹出事件,并设置视图与键盘之间的距离。
今天推荐一个好用的三方库MLInputDodger
使用方法:
- (void)viewDidAppear:(BOOL)animated{
[ super viewDidAppear:animated];
//注册
[ self.view registerAsDodgeViewForMLInputDodger];
//距离键盘距离
self.view.shiftHeightAsDodgeViewForMLInputDodger = 60;
}
5307

被折叠的 条评论
为什么被折叠?