Coder Social home page Coder Social logo

Comments (3)

neoplastic avatar neoplastic commented on June 8, 2024

Yup, I'm observing the same using an iPad Air, the iPhone 5 works fine.

I think its the variadic dereferencing which is causing the problem. Since its on the 64-bit architecture, it seems that its reading the wrong part of memory... Course I'm not sure on this but evidence points to it.

Anyway, if you want the project working you can substitute:

    [wordmarkFrameAnimation addKeyFrames:[IFTTTAnimationKeyFrame keyFramesWithTimesAndFrames:
            // number of keyframes to add
            4,

            // move 200 pixels to the right for parallax effect
            timeForPage(1), CGRectOffset(self.wordmark.frame, 200, 0),

            // move to initial frame on page 2 for parallax effect
            timeForPage(2), self.wordmark.frame,

            // move down and to the right between pages 2 and 3
            timeForPage(3), CGRectOffset(self.wordmark.frame, self.view.frame.size.width, dy),

            // move back to initial position on page 4 for parallax effect
            timeForPage(4), CGRectOffset(self.wordmark.frame, 0, dy)
    ]];

with:

#import "IFTTTAnimationKeyFrame.h";

...
...

NSArray *arrayOfKeyFrames = @[
                                  [IFTTTAnimationKeyFrame keyFrameWithTime: timeForPage(1)
                                                                  andFrame: CGRectOffset(self.wordmark.frame, 200, 0)],
                                  [IFTTTAnimationKeyFrame keyFrameWithTime:timeForPage(2) andFrame:self.wordmark.frame],
                                  [IFTTTAnimationKeyFrame keyFrameWithTime:timeForPage(3) andFrame:CGRectOffset(self.wordmark.frame, self.view.frame.size.width, dy)],
                                  [IFTTTAnimationKeyFrame keyFrameWithTime:timeForPage(4) andFrame:CGRectOffset(self.wordmark.frame, 0, dy)]
                                  ];
    [wordmarkFrameAnimation addKeyFrames:arrayOfKeyFrames];

Effectively we're just making the keyFramesWithTimesAndFrames: method more verbose in our class.

from jazzhands.

JonCox avatar JonCox commented on June 8, 2024

Hi, I'm finding the exact same issue on an iPhone 5s - but, like @tomhut, not on any of the simulators.

@neoplastic's fix fixed it though, thank you.

(Just for reference, this was on the master branch, commit 9c77461.)

from jazzhands.

jhersh avatar jhersh commented on June 8, 2024

Thanks all for the heads up here. There's definitely something funny going on with arm64.

I've updated the demo app to no longer use variadics and it's running fine on my 5s.

from jazzhands.

Related Issues (20)

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.