How is this app made?

Discussion in 'iOS Programming' started by BoxerRobban472, Jun 12, 2017.

  1. BoxerRobban472 macrumors member

    Joined:
    Sep 12, 2013
    Location:
    Gothenburg, Sweden
    #1
    Hi everyone!

    I'm quite new to iOS development and don't really know a whole bunch about it. However, I stumbled upon an app which lets you create a ripple effect on a picture of your choice, like the picture was the "water" and you could interact with it. (This is the app: https://itunes.apple.com/us/app/ripple-image/id591785636?mt=8 ), and I'm just curious; How would you go about to create something like this? I have tried googling and am really drawing a blank when it comes to model it programmatically, do you guys have any ideas?

    Thank you!

    Kind regards,
    Johan
     
  2. Mascots macrumors 65816

    Mascots

    Joined:
    Sep 5, 2009
    #2
    A long time ago, you could access it through a CATransition...

    Edit: I looked it up and it's not necessarily documented but it's not necessarily private.

    Code:
    CATransition *animation = [CATransition animation];
    [animation setDelegate:self];
    [animation setDuration:2.0f];
    [animation setTimingFunction:UIViewAnimationCurveEaseInOut];
    [animation setType:@"rippleEffect" ];
    [myView.layer addAnimation:animation forKey:NULL];
     
  3. BoxerRobban472 thread starter macrumors member

    Joined:
    Sep 12, 2013
    Location:
    Gothenburg, Sweden
    #3
    Wow! Thank you for sharing, now I know what I'm going to be doing this weekend!
     

Share This Page