There were a couple of glitches in the code I had originally posted in “iPad: resize view to account for keyboard” especially when dealing with a scroll view within a split-view controller, etc.
Originally, I was using the “setContentOffset” method on the UIScrollView:
This was problematic depending on the orientation and so forth. Frankly, I could never get it to behave the way I wanted. After much debugging I looked at some other methods and found: scrollRectToVisible. Well … that sounds like just what I need and no longer have to worry about calculating the perfect position for the scroll point. Here was the updated line:
[scrollView scrollRectToVisible:activeField.frame animated:YES];
There. Much better! See the original post for the rest of the tutorial.