iOS 8 API modifications adapted.
iOS 8 API modifications adapted.