Removed iOS version detection with the preferred  NSFoundationoVersionNumber check, as per Apples example.