iOS SDK 7 compatibility