Removed iOS 7 hack for adjusting content insets and replaced it with iOS 8 hack.