Skip to content

Commit dc3f349

Browse files
committed
fix the warning
1 parent a88918f commit dc3f349

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

MessageDisplayKit/Classes/Controllers/XHMessageTableViewController/XHMessageTableViewController.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,13 @@ - (BOOL)shouldAutorotate {
707707
return NO;
708708
}
709709

710-
- (NSUInteger)supportedInterfaceOrientations {
711-
return (NSUInteger)UIInterfaceOrientationMaskPortrait;
710+
#if __IPHONE_OS_VERSION_MAX_ALLOWED < __IPHONE_9_0
711+
- (NSUInteger)supportedInterfaceOrientations
712+
#else
713+
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
714+
#endif
715+
{
716+
return UIInterfaceOrientationMaskPortrait;
712717
}
713718

714719
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {

0 commit comments

Comments
 (0)