Skip to content

Commit

Permalink
uikit: Call base class implementation of rotation callbacks
Browse files Browse the repository at this point in the history
The Apple documentation explicitly says that you should call super
when implementing these methods.

Change-Id: I584bb140a4a5bde88927b379ab19158a78c6fea9
Reviewed-by: Jake Petroules <[email protected]>
Reviewed-by: Tor Arne Vestbø <[email protected]>
  • Loading branch information
torarnv authored and Tor Arne Vestbø committed Jun 10, 2016
1 parent bd4344a commit 7511437
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/plugins/platforms/ios/qiosviewcontroller.mm
Original file line number Diff line number Diff line change
Expand Up @@ -324,17 +324,16 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface

- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)orientation duration:(NSTimeInterval)duration
{
Q_UNUSED(orientation);
Q_UNUSED(duration);

self.changingOrientation = YES;

[super willRotateToInterfaceOrientation:orientation duration:duration];
}

- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)orientation
{
Q_UNUSED(orientation);

self.changingOrientation = NO;

[super didRotateFromInterfaceOrientation:orientation];
}

- (void)willChangeStatusBarFrame:(NSNotification*)notification
Expand Down

0 comments on commit 7511437

Please sign in to comment.