Я разработал приложение iOS и протестировал его на устройстве iOS6. Во время тестирования я понял, что мое приложение не реагирует на изменения ориентации, как ожидалось.
Вот мой код:
// Autorotation (iOS >= 6.0)
- (BOOL) shouldAutorotate
{
return NO;
}
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskAll;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationMaskPortrait;
}
Именно поэтому я хочу знать, какие методы вызывают при изменении ориентации в iOS.