I am trying to replace didRotateFromInterfaceOrientation with willTransitionToTraitCollection - in a subclass of UIViewController - as doc says, but the method is not called when I rotate the device. Why?
didRotateFromInterfaceOrientation
willTransitionToTraitCollection
If you test this on an iPad, it has regular feature collections for the vertical and horizontal classes for both orientations, so it will not call this method when the orientation is changed.
Source: https://habr.com/ru/post/974722/More articles:Is there a way to create a derived instance from a base instance? - c ++Spring Boot MultipartResolver missing in PUT method - spring-boot“Could not instantiate class called UIStoryboardShowSegueTemplate” - how can I make Storyboard happy with iOS 7 and iOS 8? - ios7Extract large amounts of data from a remote server, in a DataFrame - pythonConfirm ASCII character entry - cnewInstance () with inner classes - javaC ++ 11 when incrementing an atomic variable and assigning it to another value, is this an atomic operation? - c ++Why do we sometimes use the hexadecimal format for decimal? - javasession token security parse.com - sessionlocalization (i18n) in sapui5 for fragment.xml file not displaying - localizationAll Articles