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
NSValue *keyboardValue = [userInfo objectForKey:UIKeyboardBoundsUserInfoKey];
with the lines
NSValue *keyboardValue = [userInfo objectForKey:UIKeyboardFrameEndUserInfoKey];
keyboardBounds = [keyboardValue CGRectValue];
keyboardBounds = [self.view convertRect:keyboardBounds fromView:nil];
Hope this helps.