Skip to content

Conform to this protocol and when the keyboard comes up your tableviews' insets will be adjusted and it won't be covered up by the keyboard!

License

Notifications You must be signed in to change notification settings

kkendall33/TableViewInsets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TableViewInsets

Conform to this protocol and when the keyboard comes up your tableviews' insets will be adjusted and it won't be covered up by the keyboard!

1. Conform

class ExampleTableViewController: UITableViewController, TableViewInsetsAdjusting {

2. Call setup (free function after you conform to TableViewInsetsAdjusting)

override func viewDidLoad() {
    super.viewDidLoad()
    setupInsetAdjust()
}

3. Call takeDown (free function after you conform to TableViewInsetsAdjusting)

deinit {
    takeDownInsetAdjust()
}

Here it is all together:

class ExampleTableViewController: UITableViewController, TableViewInsetsAdjusting {

  override func viewDidLoad() {
    super.viewDidLoad()
    setupInsetAdjust()
  }
  
  deinit {
    takeDownInsetAdjust()
  }

}

Here's a blog post about it: CheckoutMyCode

About

Conform to this protocol and when the keyboard comes up your tableviews' insets will be adjusted and it won't be covered up by the keyboard!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages