I found that a more up to date and easier to understand change that handles both portrait and landscape modes equally well is to edit ScrollingViewsViewController.m by replacing the lines
Code:
NSValue *keyboardValue = [userInfo objectForKey:UIKeyboardBoundsUserInfoKey];
[keyboardValue getValue:&keyboardBounds];
with the lines
Code:
NSValue *keyboardValue = [userInfo objectForKey:UIKeyboardFrameEndUserInfoKey];
keyboardBounds = [keyboardValue CGRectValue];
keyboardBounds = [self.view convertRect:keyboardBounds fromView:nil];
Hope this helps.