Hero library可以很容易地为UINavigationControllers等添加很酷的过渡,但我似乎无法弄清楚如何让它在两个子视图控制器之间切换。
例如:
self.isHeroEnabled = true
let c1 = MyController1()
let c2 = MyController2()
addChildViewController(c1)
addChildViewController(c2)
c2.view.isHidden = true
// Somewhere else in the app
func switchControllers(){
// What to do?
}