Skip to content

Instantly share code, notes, and snippets.

@arturlector
Last active February 4, 2016 12:44
Show Gist options
  • Save arturlector/41f614d80aa64afe49f5 to your computer and use it in GitHub Desktop.
Save arturlector/41f614d80aa64afe49f5 to your computer and use it in GitHub Desktop.

Реагирование на клавиатуру в custom tableview

Probably it was some sort of my mistake because of me messing with autolayouts and storyboard but I found an answer.

You have to take care of this little guy in View Controller's Attribute Inspector asvi

It must be unchecked so the default contentInset wouldn't be set after any change. After that it is just adding one-liner to viewDidLoad:

[self.tableView setContentInset:UIEdgeInsetsMake(108, 0, 0, 0)]; // 108 is only example

Adjust Scroll View Insets

adjust scroll view insets

http://stackoverflow.com/a/22022366

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment