Replaced iOS 8 method with iOS 7 one.