2009-10-31 89 views
0

我的超級視圖是UItabelview,我的子視圖是UITabelview和UIDatePicker。 我的子視圖並沒能叫關於自動旋轉的問題

  • (無效)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation時間:(NSTimeInterval)持續時間

爲什麼呢? bcoz此方法在視圖旋轉時調用,當時我想爲該視圖設置autoresizingmask方法,以便當我的子視圖從縱向旋轉到橫向模式時,視圖會自動調整大小?

+4

21個問題,沒有接受? – zaph 2009-10-31 19:14:04

回答

1

確保您的子視圖響應

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
}