I have seen this property in UIDevice.h file generatesDeviceOrientationNotifications how can i benefit from this or how can i use it or how it generate notification is it generate alert view
I have seen this property in UIDevice.h file generatesDeviceOrientationNotifications how can i benefit from
Share
You can ask the UIDevice to generate device orientation notifications:
Your UIViewController subclasses can listen for this notification by doing this:
and writing a didRotate: method like this:
The benefits to doing this over the “standard”
is that sometimes, based on the structure and nesting of your UIViewControllers, you may not always receive the willAnimateRotationToInterfaceOrientation calls. Handling the notification instead guarantees that your ViewControllers which need to handle the changes always know when the change happens.