0

在我的 UIViewController 子类中,我 impliment - (void)didAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation,但它从未被调用,尽管我已经正确实现- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation并且我的视图确实得到了旋转。

4

1 回答 1

1

您还必须为 did... 实现 willAnimateFirstHalfOfRotationToInterfaceOrientation 才能被调用。我怀疑框架首先尝试调用意志......如果它没有发现它实现了它假设你没有实现did......,所以永远不要调用它。

于 2011-04-05T17:41:43.773 回答