1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

UIViewComponentPeer: Remove orientation-related methods that are deprecated on all supported JUCE deployment targets

This commit is contained in:
reuk 2025-10-30 19:41:57 +00:00
parent a2ed4e3ffd
commit c1c0b58787
No known key found for this signature in database

View file

@ -353,9 +353,6 @@ struct CADisplayLinkDeleter
- (JuceUIViewController*) init;
- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation;
- (void) willRotateToInterfaceOrientation: (UIInterfaceOrientation) toInterfaceOrientation duration: (NSTimeInterval) duration;
- (void) didRotateFromInterfaceOrientation: (UIInterfaceOrientation) fromInterfaceOrientation;
- (UIInterfaceOrientationMask) supportedInterfaceOrientations;
- (void) viewWillTransitionToSize: (CGSize) size withTransitionCoordinator: (id<UIViewControllerTransitionCoordinator>) coordinator;
- (BOOL) prefersStatusBarHidden;
@ -626,26 +623,6 @@ MultiTouchMapper<UITouch*> UIViewComponentPeer::currentTouches;
return Orientations::getSupportedOrientations();
}
- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation
{
return Desktop::getInstance().isOrientationEnabled (Orientations::convertToJuce (interfaceOrientation));
}
- (void) willRotateToInterfaceOrientation: (UIInterfaceOrientation) toInterfaceOrientation
duration: (NSTimeInterval) duration
{
ignoreUnused (toInterfaceOrientation, duration);
[UIView setAnimationsEnabled: NO]; // disable this because it goes the wrong way and looks like crap.
}
- (void) didRotateFromInterfaceOrientation: (UIInterfaceOrientation) fromInterfaceOrientation
{
ignoreUnused (fromInterfaceOrientation);
sendScreenBoundsUpdate (self);
[UIView setAnimationsEnabled: YES];
}
- (void) viewWillTransitionToSize: (CGSize) size withTransitionCoordinator: (id<UIViewControllerTransitionCoordinator>) coordinator
{
[super viewWillTransitionToSize: size withTransitionCoordinator: coordinator];