一、出現(xiàn)問(wèn)題場(chǎng)景
初始化UITextView,設(shè)置frame位當(dāng)前控制器view的bounds大小,點(diǎn)擊TextView導(dǎo)航欄出現(xiàn)上移問(wèn)題.
二、解決方法
- (void)viewWillAppear:(BOOL)animated {
[superviewWillAppear:animated];
[IQKeyboardManager sharedManager].enable =NO;
}
- (void)viewWillDisappear:(BOOL)animated {
[superviewWillDisappear:animated];
[IQKeyboardManager sharedManager].enable =YES;
}
以親測(cè),問(wèn)題已解決,方法簡(jiǎn)單有效.