Rotate

C++ code posted
created at 17 Jun 18:18, updated at 19 Jun 13:45

Edit | Back
1
2
3
4
5
// In your ViewController.m subclass that you wish to just obey the specified supported orientations,
// #import "UIApplicationAddition.h"
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return UIInterfaceOrientationIsSupportedOrientation(interfaceOrientation);
}
319 Bytes in 2 ms with coderay