实际上我想在View Present动画的基础上显示动画,但是在后台我要推送。
现在的情况是这样的,当我呈现它将在延迟时显示的视图,每个视图(子视图)都像label,if table then tableViewCell
我刚出现View in Some延迟但无法在延迟时间显示子视图。
我试过这个:
let vc = self.storyboard?.instantiateViewController(withIdentifier: "presentview") as! presentview
let transition:CATransition = CATransition()
transition.duration = 0.8
transition.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseInEaseOut)
transition.type = kCATransitionPush
transition.subtype = kCATransitionFromTop
self.navigationController!.view.layer.add(transition, forKey: kCATransition)
self.navigationController?.pushViewController(vc, animated: false)