Solve the problem for keyboard, text input view and table view