Added support for iOS 8 , tested on iPhone 5s