reverted some of the changes to support iOS7 and earlier. Now conditionally checks for iOS8 before ignoring this logic.