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:
parent
a2ed4e3ffd
commit
c1c0b58787
1 changed files with 0 additions and 23 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue