Skip to content

Commit

Permalink
fixed up NIOverview.m so that it will compile on iOS 8
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaclach committed Jun 6, 2014
1 parent 4fe665f commit 1a94cc8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/overview/src/NIOverview.m
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,10 @@ + (CGRect)frame {
frame = CGRectOffset(frame, frame.size.width, 0);
break;
}
#if defined(__IPHONE_8_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0
// Only defined in >= iOS8 SDK
case UIInterfaceOrientationUnknown:
#endif // defined(__IPHONE_8_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0
case UIInterfaceOrientationPortrait: {
frame = CGRectOffset(frame, 0, -frame.size.height);
break;
Expand Down

0 comments on commit 1a94cc8

Please sign in to comment.