Remove use of an iOS 8 API