when i incline horizontally an iPad device i obtain a strange behaviour. The notification:
NSNotificationCenter.defaultCenter().addObserver(self, selector: "MySelector", name: UIDeviceOrientationDidChangeNotification, object: nil)
has been triggered and invoke "MySelector" causing unuseful ui update. There is a way to avoid the triggering of my selector when my device has been horizontally inclined?