Orientation Change Notification

Orientation Changed Notification Add to #AppDelegate.m didFinishLaunchingWithOptions //—– SETUP DEVICE ORIENTATION CHANGE NOTIFICATION —– UIDevice *device = [UIDevice currentDevice]; //Get the device object [device beginGeneratingDeviceOrientationNotifications]; //Tell it to start monitoring the accelerometer for orientation NSNotificationCenter *nc = [NSNotificationCenter defaultCenter]; //Get the notification centre for the app [nc addObserver:self //Add yourself as an observer selector:@selector(orientationChanged:) name:UIDeviceOrientationDidChangeNotification […]

Read More