diff --git a/modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm b/modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm index b4a57933d6..9737bfebd1 100644 --- a/modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm +++ b/modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm @@ -353,10 +353,10 @@ struct CADisplayLinkDeleter - (JuceUIViewController*) init; -- (NSUInteger) supportedInterfaceOrientations; - (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation; - (void) willRotateToInterfaceOrientation: (UIInterfaceOrientation) toInterfaceOrientation duration: (NSTimeInterval) duration; - (void) didRotateFromInterfaceOrientation: (UIInterfaceOrientation) fromInterfaceOrientation; +- (UIInterfaceOrientationMask) supportedInterfaceOrientations; - (void) viewWillTransitionToSize: (CGSize) size withTransitionCoordinator: (id) coordinator; - (BOOL) prefersStatusBarHidden; - (UIStatusBarStyle) preferredStatusBarStyle; @@ -621,7 +621,7 @@ MultiTouchMapper UIViewComponentPeer::currentTouches; return self; } -- (NSUInteger) supportedInterfaceOrientations +- (UIInterfaceOrientationMask) supportedInterfaceOrientations { return Orientations::getSupportedOrientations(); }