2011-09-11 41 views

回答

1

在你看來.m文件,你應該看到對底部的功能:

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

更改相應的方向,使之正確,並引用它的按鈕。或者複製並粘貼如果然後在您的按鈕。這應該做到這一點。

相關問題