displaymode

How can I prepare a UISplitViewController secondary VC for a change to displayMode?

吃可爱长大的小学妹 提交于 2019-12-11 10:03:22
问题 In iOS8, UISplitViewController changed, and now notifies its delegate of a pending displayMode change via splitViewController:willChangeToDisplayMode: . I need to update some aspects of my secondary view controller in response to this change. It's simple enough to call methods on the secondary VC during this delegate method, but the VC doesn't yet know what its new bounds will be. Is there a reasonable way to be notified that the bounds of the VC will change, apart from KVO on the bounds of