- 1
- 2
- 3
- 4
- 5
- 6
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return
interfaceOrientation == UIInterfaceOrientationLandscapeLeft ||
interfaceOrientation == UIInterfaceOrientationLandscapeRight ||
false ? YES : NO;
}
Сколько деревьев байт можно было спасти выкинув все InterfaceOrientation.
Ох уж этот обжептив. Но зато на символах экономим ||, == .
на кой?