Skip to content

Commit 4c055d7

Browse files
author
Ignacio Romero Zurbuchen
committed
Fixes warning in iOS8 and below
1 parent 41620c1 commit 4c055d7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Source/Classes/SLKTextViewController.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2152,10 +2152,17 @@ - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrie
21522152
[self slk_prepareForInterfaceRotationWithDuration:duration];
21532153
}
21542154

2155+
#ifdef __IPHONE_9_0
21552156
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
21562157
{
21572158
return UIInterfaceOrientationMaskAll;
21582159
}
2160+
#else
2161+
- (NSUInteger)supportedInterfaceOrientations
2162+
{
2163+
return UIInterfaceOrientationMaskAll;
2164+
}
2165+
#endif
21592166

21602167
- (BOOL)shouldAutorotate
21612168
{

0 commit comments

Comments
 (0)