Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting a blank view controller when performing segue #59

Open
felixchan opened this issue Feb 1, 2016 · 2 comments
Open

Getting a blank view controller when performing segue #59

felixchan opened this issue Feb 1, 2016 · 2 comments

Comments

@felixchan
Copy link

override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        if segue.identifier == SEGUES.SegueLobbyToProfile {
            if let child = segue.destinationViewController.contentViewController as? ProfileViewController{
                self.animator = ZFModalTransitionAnimator(modalViewController: child)
                self.animator!.bounces = true
                self.animator!.transitionDuration = CGFloat(0.8)
                self.animator!.direction = .Right
                self.animator!.setContentScrollView(child.scrollView)

                self.animator!.dragable = true
                child.modalPresentationStyle = .Custom
                child.transitioningDelegate = self.animator

            }
        }

    }

Is this the correct way to attach the animator to the segue? My segue is "present modally" , with everything on default.

When the animator appears, it comes from Bottom (instead of Right), and the screen is completely white. I can drag the animator down to close it.

@dimohamdy
Copy link
Contributor

+1

@dimohamdy
Copy link
Contributor

swift version
https://github.com/dimohamdy/ZFDragableModalTransitionSwift

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants