Skip to content

Commit

Permalink
Revert "Changed AQGridViewController's rotation notifications to use …
Browse files Browse the repository at this point in the history
…3.0 one-step animation version."

Turns out this one needs to use the older version in order that it gets called before the bounds change.

This reverts commit 238b597.
  • Loading branch information
AlanQuatermain committed Apr 24, 2010
1 parent 238b597 commit 77c5a33
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Classes/AQGridViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,13 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface
return YES;
}

- (void) willAnimateRotationToInterfaceOrientation: (UIInterfaceOrientation) toInterfaceOrientation
duration: (NSTimeInterval) duration
- (void) willRotateToInterfaceOrientation: (UIInterfaceOrientation) toInterfaceOrientation
duration: (NSTimeInterval) duration
{
[self.gridView viewWillRotateToInterfaceOrientation: toInterfaceOrientation];
[NSTimer scheduledTimerWithTimeInterval: duration target: self selector: @selector(endRotation) userInfo: nil repeats: NO];
}

- (void) endRotation
- (void) didRotateFromInterfaceOrientation: (UIInterfaceOrientation) fromInterfaceOrientation
{
[self.gridView viewDidRotate];
}
Expand Down

0 comments on commit 77c5a33

Please sign in to comment.