背景

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

解决办法

导入头文件

#import <IQKeyboardManager/IQUIScrollView+Additions.h>

UITableView 对象 设置以下属性

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

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