2012-03-24 10 views

答えて

0

各タブのビューコントローラの.mファイルでは、要件に応じてインターフェイスの向きをポートレートまたはランドスケープに設定できます。ここで

は、ビューコントローラの.mファイル内のコードブロックの抜粋である

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{ 
    // Return YES for supported orientations 
    if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { 
     return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown); 
    } else { 
     return YES; 
    } 
} 
関連する問題