Adapt for iOS7.