I am working on an application that is mainly used in portrait mode (with the exception of a few views). We are faced with a problem in iOS 8 where the application can rotate when displayed UIViewAlert, although the lining controller only supports portrait orientation, and the method shouldAutorotatereturns NO. The rotation is not yet complete, as it is UIAlertViewrotated to landscape, but the main image remains in portrait mode. No problem if we run the application in iOS 7.
I know that it is UIAlertViewdeprecated in iOS 8 and now we have to use it UIAlertController. However, I would really like to avoid replacing, as that would mean editing 50+ classes that use UIAlertViewand UIAlertViewDelegate. In addition, we still support iOS 7, so I will have to have both solutions. I would prefer to do this only once, when we make the full transition to iOS 8.
source
share