Skip to content

Commit

Permalink
Merge pull request cruffenach#128 from dmiedema/fix-ios7-runtime-crash
Browse files Browse the repository at this point in the history
Fix runtime crash when compiled with iOS 8 running on iOS 7
  • Loading branch information
Ashton-W committed Jan 27, 2015
2 parents df2860b + 3157570 commit 583da45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRToast/CRToastLayoutHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
static inline BOOL CRFrameAutoAdjustedForOrientation() {
#ifdef __IPHONE_8_0
return YES;
return [[UIScreen mainScreen] respondsToSelector:@selector(traitCollection)];
#else
return NO;
#endif
Expand All @@ -27,7 +27,7 @@ static inline BOOL CRFrameAutoAdjustedForOrientation() {
*/
static inline BOOL CRUseSizeClass() {
#ifdef __IPHONE_8_0
return YES;
return [[UIScreen mainScreen] respondsToSelector:@selector(traitCollection)];
#else
return NO;
#endif
Expand Down

0 comments on commit 583da45

Please sign in to comment.