2011-08-24 60 views

回答

0

如果你談論的UITableView方向,那麼你可以實現只在景觀左和右以下爲視圖 - 控制工作的方向您的ViewController類代碼。

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{ 
    return (interfaceOrientation == UIDeviceOrientationLandscapeLeft || interfaceOrientation == UIDeviceOrientationLandscapeRight) ; 
} 

如果不是這樣,請解釋的東西代碼或圖像您的問題。