我的視圖控制器不響應didRotateFromInterfaceOrientation
,儘管我已經添加在我的代碼如下:視圖控制器不響應didRotateFromInterfaceOrientation
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
[self.popOver dismissPopoverAnimated:NO];
if (interfaceOrientation == UIInterfaceOrientationLandscapeRight) {
... My Custom Code...
}
}
我在這裏幹什麼什麼了嗎?
有一件事我只注意到我的控制器類是NSObject的一個子類,不是UIViewController的子類。我無法改變這個層次結構。仍然有什麼辦法呢? – Abhinav 2010-10-05 03:51:34