- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
// Return YES if incoming orientation is Portrait
// or either of the Landscapes, otherwise, return NO
return (toInterfaceOrientation == UIInterfaceOrientationPortrait) || UIInterfaceOrientationIsLandscape(toInterfaceOrientation);
}
What does the ‘||’ mean here?
Same thing as the C
||operator: logical or.