(iOS) Fix backwards compatibility with iOS 6