Updated code for iOS 8 API change, updated README to reflect this.