2010-06-08 52 views

回答

1

嘗試增加這UIViewController中:

// Override to allow orientations other than the default portrait orientation. 
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
    // Return YES for supported orientations 
    return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || 
      interfaceOrientation == UIInterfaceOrientationLandscapeRight); 
} 

您可以瞭解更多關於此這裏:UIViewController class reference

+0

感謝傑米!我會盡力! – ghiboz 2010-06-08 14:45:21