Giter Club home page Giter Club logo

popplayground's People

Contributors

alexito4 avatar boyvanamstel avatar victorbaro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

popplayground's Issues

custom segue performs multiple times

I know here is a place to fire issues.
But I don't know where to ask questions, so I put it here.

I rewote custom segue in swift

override func perform() {
    let sourceViewController = self.sourceViewController as! ViewController
    let destinationViewController = self.destinationViewController as! ImageSlideShowViewController

    let layer = destinationViewController.view.layer
    layer.pop_removeAllAnimations()

    NSLog("Layer frame X: %f", layer.frame.origin.x);
    NSLog("Layer frame width: %f", layer.frame.size.width);

    let xAnim = POPSpringAnimation(propertyNamed: kPOPLayerPositionX)
    let sizeAnim = POPSpringAnimation(propertyNamed: kPOPLayerSize)

    xAnim.fromValue = 320
    xAnim.springBounciness = 16
    xAnim.springSpeed = 10

    // About 20% of it's normal size
    sizeAnim.fromValue = NSValue(CGSize: CGSizeMake(64, 114))

    xAnim.completionBlock = { (_, _) in
        NSLog("Animation has completed.");
        NSLog("Layer frame X: %f", layer.frame.origin.x);
    };

    layer.pop_addAnimation(xAnim, forKey:"position")
    layer.pop_addAnimation(sizeAnim, forKey:"size")

    sourceViewController.navigationController?.pushViewController(destinationViewController, animated:false)

}

but when I click the cell, perform executes 3 times.
can not reproduce in the original objectivec project.

could you help me?

Can't compile

Shows:

/PopPlayground-master/PopPlayground/ViewController.m:46:41: No known class method for selector 'flatRandomColor'

Build error

Hi @ibaro,

I tried to run your project and learn facebook pop animation from it, but I got some errors. I am actually using xcode 6.1. And the project won't run.

Second for the device can you support also the iphone 4. Because now I see only the ipads simulerator when trying to run the project.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.