boxmoe_header_banner_img

Hello! 欢迎来到我的博客!

加载中

文章导读

UITableViewCell 添加 UITextView IQKeyboardManager 不起作用


avatar
博主大大 2021年3月28日 3.48k

背景

UITableViewCell 里 使用 UITextView 出现 键盘遮挡输入框的问题

解决办法

导入头文件

#import <IQKeyboardManager/IQUIScrollView+Additions.h>

UITableView 对象 设置以下属性

self.table.shouldIgnoreScrollingAdjustment = YES;
self.table.shouldRestoreScrollViewContentOffset = YES;

以上解决方案适用于 UIScrollView 及其子类 UITableViewUICollectionView



评论(已关闭)

评论已关闭