Fixes issue #587. Apparently, self.interfaceOrientation is unreliable.
Merge pull request #673 from waywalker/issue-587-index-view-orientation

Fixes issue #587. Apparently, self.interfaceOrientation is unreliable.