我正在创建一个 iPhone 通用应用程序并实现 willHideViewController 方法。此方法在 iPad 纵向模式下调用,但在 iPad 横向模式下不调用。 谁能给出解决方案?
willHideViewController
自 iOS8 以来已被弃用 (source)
你需要使用 splitViewController:willChangeToDisplayMode:
方法,因为没有保证 willHideViewController
将继续正常工作(你发现它不是!)
关于ios - 当应用程序处于横向模式时,将隐藏未调用的 ViewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44965293/
欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) | Powered by Discuz! X3.4 |