- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
// Return YES if incoming orientation is Portrait
// or either of the Landscapes, otherwise, return NO
return (toInterfaceOrientation == UIInterfaceOrientationPortrait) || UIInterfaceOrientationIsLandscape(toInterfaceOrientation);
}
什麼的 '||'在這裏呢?'||'在客觀的C?
''||手段或(布爾) –
認真.....? (答案在你自己的代碼樣本中) – Jeroen
你可以很容易地找到這個問題,而不要問這裏... –