Application freeze after manual rotation in iOS 5
So i have a bug. It appears when i try to rotate my application after user
clicked unlock rotation button. For this feature i use next code
RotateHelperViewController *viewController =
[[RotateHelperViewController alloc] init];
viewController.neededOrientation = currentDeviceOrientation;
self.orientationFromLockedState = currentDeviceOrientation;
[UIView animateWithDuration:0.4 animations:^{
[self presentModalViewController:viewController animated:NO];
}
completion:^(BOOL finished) {
[viewController dismissModalViewControllerAnimated:NO];
[viewController release];
self.orientationFromLockedState = -1;
}];
this bug appears only on ios 5.x on iOS 6.x all works good. Also rotation
works fine if we rotate automaticaly.
No comments:
Post a Comment