Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)viewDidLoad {
- [super viewDidLoad];
- NSLog(@"viewDidLoad");
- // Tell the UIDevice to send notifications when the orientation changes
- [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(orientationChanged:) name:UIDeviceOrientationDidChangeNotification object:nil];
- }
- // tell the director that the orientation has changed
- - (void) orientationChanged:(NSNotification *)notification
- {
- NSLog(@"orientationChanged");
- }
Add Comment
Please, Sign In to add comment