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

kjmcneish

  • 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": https://itunes.apple.com/us/book/learn-to-code-in-swift/id942956811?mt=11
« Last Edit: July 20, 2015, 04:18:45 AM by kjmcneish »