Skip to content

Load a UIViewController instead of an image when animation is done #8

@steffimueller

Description

@steffimueller

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions