Skip to content

Commit

Permalink
define NSFoundationVersionNumber_iOS_7_1 for iOS 7
Browse files Browse the repository at this point in the history
  • Loading branch information
dmiedema committed Jan 4, 2015
1 parent 821ed4c commit 002a7ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CRToast/CRToastLayoutHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ static BOOL CRHorizontalSizeClassRegular() {
return NO;
}

/* Taken from NSObjCRuntime.h */
#ifndef NSFoundationVersionNumber_iOS_7_1
#define NSFoundationVersionNumber_iOS_7_1 1047.25
#endif

/**
`BOOL` to determine if the frame is automatically adjusted for orientation. iOS 8 automatically accounts for orientation when getting frame where as iOS 7 does not.
If/when iOS 7 support is dropped this check will no longer be necessary
Expand Down

0 comments on commit 002a7ca

Please sign in to comment.