I am trying to replace didRotateFromInterfaceOrientation
with willTransitionToTraitCollection
- in a UIViewController subclass - as doc says, but method is not get called when I am rotating device. Why?
相关问题
- Loading local file in WKWebView doesn't workin
- Dismiss ChildView From ParentViewController
- Swift UIApplication.setStatusBarStyle Doesn't
- UINavigationControllerDelegate method called twice
- iOS7 tint color only works after presenting and di
相关文章
- Navigation bar disappears when typing in UISearchC
- iOS 8 Today widget alignment issue
- How to set different navigationbar color for diffe
- Using the device simulator for iOS 8 with Xcode 7
- Using UILexicon to implement autocorrect in iOS 8
- How to open Photo app from UIViewController?
- Can't see custom keyboard in Safari of iOS8.1
- Custom transition animation unknown delay between
If you're testing this on iPad it has regular trait collections for vertical and horizontal class for both orientations, thus it will not call this method when orientation changed.