Create iOS7 compatibility with fallback for iOS6