Author Topic: Why doesn't my table view automatically scroll up when the keyboard appears?  (Read 3157 times)


  • Administrator
  • *****
  • Posts: 719
    • View Profile
If your table view doesn't automatically scroll up when you the keyboard appears, it's usually because you have overridden to the viewWillAppear: method in your view controller without making a call to the superclass method. To fix the problem, add a call to the superclass method! For example:

Code: [Select]
- (void)viewWillAppear:(BOOL)animated
    [super viewWillAppear:animated];
    // My custom code

All the best!
Kevin McNeish
Author of "Learn to Code in Swift":
« Last Edit: July 20, 2015, 04:18:45 AM by kjmcneish »