domhofmann / PRTween

Lightweight tween library for iOS
BSD 2-Clause "Simplified" License
459 stars 63 forks source link

timingFunction problem.. #27

Closed Twinski closed 11 years ago

Twinski commented 11 years ago

Hi everyone! I'm fairly new to iOS and could test PRTween with success as long as I didn't use the timingFunction parameter. When I did, I always got the same error: "No known class method for selector 'tween:property:from:to:duration:timingFunction:'"

This is my code: (v1 is my view I'd love to animate) [PRTween tween:v1 property:@"alpha" from:1 to:0 duration:3 timingFunction:&PRTweenTimingFunctionExpoInOut];

Would love to hear about any solution! I love custom easing. Thanks a bunch, Yordi.