Fix for iOS 7

Added iOS 7 condition to prevent 20 pixel offset when showing and dismissing the view.