Comment on Show HN: iOS Table View that automatically adjusts with keyboard show/hideparentComments−bobsprynOP14yI believe I started to try that method but ran into issues. Wasn't aware of the scrollIndicatorInsets though, so maybe that was the issue.Would that method have any significant advantages? Less code? Would it avoid all the crazy frame calculations depending on the rotation?−thought_alarm14yYes, `-convertRect:fromView:` replaces your frame calculations based on rotation.−bobsprynOP14yAh yes. I see now that I totally missed the fact that the keyboard rect also needed to be converted. Well that was a painful point to miss!Cool. I'll give that a whirl. Those rotation bits were a biatch. Thanks for the pointers.
Comments
I believe I started to try that method but ran into issues. Wasn't aware of the scrollIndicatorInsets though, so maybe that was the issue.
Would that method have any significant advantages? Less code? Would it avoid all the crazy frame calculations depending on the rotation?
Yes, `-convertRect:fromView:` replaces your frame calculations based on rotation.
Ah yes. I see now that I totally missed the fact that the keyboard rect also needed to be converted. Well that was a painful point to miss!
Cool. I'll give that a whirl. Those rotation bits were a biatch. Thanks for the pointers.