added iOS 6 checks to suppress warnings