I want to load a UIViewController instead of an image when animation is done.
I tried in your example's AppDelegate:
override func animationDidStop(anim: CAAnimation!, finished flag: Bool) {
self.imageView!.layer.mask = nil //remove mask when animation completes
self.imageView?.removeFromSuperview()
println("animationDidStop")
self.window?.rootViewController = ViewController()
self.window?.makeKeyAndVisible()
}
But it did not show the controller. How can I do that?
I want to load a UIViewController instead of an image when animation is done.
I tried in your example's AppDelegate:
But it did not show the controller. How can I do that?