This problem is complex depending on your user interface. Here I will talk about a scenario in which a UITextField or UITextview is in a UITableViewCell.
You need to call
[myTableView selectRowAtIndexPath:self.indexPath animated:YES scrollPosition:UITableViewScrollPositionBottom];`
programmatically "touch" the cell.
If you implement both points, you will see the UITextView / Field position directly above the keyboard. Do not forget that the UITableViewCell where the UITableView / Field is located cannot be higher than the โunclosedโ area. If this is not the case, there is a different approach for you, but I will not discuss it here.
Wayne lo
source share