Reputation: 13267
I want to use NSTimer to call a method once the view is done rotating. How long does the view take to rotate exactly? Thanks for your help!
Upvotes: 1
Views: 132
Reputation: 250
you don't have to use a timer.
in apple's documentation there's an even trigger which is fired after the iphone rotates
see here:
I believe you can just implement this method:
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
Upvotes: 1
Reputation: 14073
You can implement didRotateFromInterfaceOrientation:
and put your code in there.
Upvotes: 2