EffectiveProgramming-Forks / Reference-iOS

iOS Reference
MIT License
0 stars 0 forks source link

UITableViewCell and UITextField scrolling #11

Open LutherBaker opened 9 years ago

LutherBaker commented 9 years ago

I find that if I depend on the automatic 'scroll to visible' functionality associated with a UITableView, cells on the very bottom of the view often don't come completely into view over the keyboard. I want to push them up a bit farther. The problem is that this mechanism is automatic in several cases ... and explicitly moving things seems to get overridden at times.

LutherBaker commented 9 years ago

Good idea to adjust the tableView's insets

tableView.contentInset =  UIEdgeInsetsMake(0, 0, height, 0);