Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个viewcontroller并且我需要知道何时iPad进入分屏多任务模式,以便相应地调整我的视图元素的大小。
viewcontroller
iPad
delegate发生这种情况时触发的方法是什么?
delegate
找到进入分屏时调用的方法
override func viewWillTransitionToSize(size: CGSize, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator)