Update to iOS 8 API