UIViewController - 不会报告方向更改

时间:2010-12-29 20:14:45

标签: uiview uiviewcontroller uidevice

在我的UIViewController子类中,我称之为- (void)didAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation,但它永远不会被调用,尽管我已正确实现- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation并且我的视图会被轮换。

1 个答案:

答案 0 :(得分:1)

您还必须为did ...调用willAnimateFirstHalfOfRotationToInterfaceOrientation。我怀疑框架首先尝试调用意志...如果它没有找到它实现它假设你没有实现did ...也是,所以永远不会调用它。