diff --git a/Core/Source/iOS/BlocksAdditions/DTActionSheet.h b/Core/Source/iOS/BlocksAdditions/DTActionSheet.h index 3722e1f7..13288858 100644 --- a/Core/Source/iOS/BlocksAdditions/DTActionSheet.h +++ b/Core/Source/iOS/BlocksAdditions/DTActionSheet.h @@ -14,7 +14,7 @@ typedef void (^DTActionSheetBlock)(void); /** Extends UIActionSheet with support for blocks. */ -#if !TARGET_OS_TV +#if !TARGET_OS_TV && __IPHONE_OS_VERSION_MAX_ALLOWED < 80300 @interface DTActionSheet : UIActionSheet /** diff --git a/Core/Source/iOS/BlocksAdditions/DTActionSheet.m b/Core/Source/iOS/BlocksAdditions/DTActionSheet.m index 3c7d793e..2ff6f8a2 100644 --- a/Core/Source/iOS/BlocksAdditions/DTActionSheet.m +++ b/Core/Source/iOS/BlocksAdditions/DTActionSheet.m @@ -11,7 +11,7 @@ #import "DTLog.h" -#if !TARGET_OS_TV +#if !TARGET_OS_TV && __IPHONE_OS_VERSION_MAX_ALLOWED < 80300 @interface DTActionSheet () diff --git a/Core/Source/iOS/BlocksAdditions/DTAlertView.h b/Core/Source/iOS/BlocksAdditions/DTAlertView.h index 269c69e0..6c47d225 100644 --- a/Core/Source/iOS/BlocksAdditions/DTAlertView.h +++ b/Core/Source/iOS/BlocksAdditions/DTAlertView.h @@ -8,7 +8,7 @@ #import "DTWeakSupport.h" -#if !TARGET_OS_TV +#if !TARGET_OS_TV && __IPHONE_OS_VERSION_MAX_ALLOWED < 90000 // the block to execute when an alert button is tapped typedef void (^DTAlertViewBlock)(void); diff --git a/Core/Source/iOS/BlocksAdditions/DTAlertView.m b/Core/Source/iOS/BlocksAdditions/DTAlertView.m index 0a207268..a567ecc7 100644 --- a/Core/Source/iOS/BlocksAdditions/DTAlertView.m +++ b/Core/Source/iOS/BlocksAdditions/DTAlertView.m @@ -8,7 +8,8 @@ #import "DTAlertView.h" #import "DTLog.h" -#if !TARGET_OS_TV + +#if !TARGET_OS_TV && __IPHONE_OS_VERSION_MAX_ALLOWED < 90000 @interface DTAlertView() @end