Hi, I would highly recommend that you move this thread to the iPhone
Developer Forums.  This is the Cocoa Dev mailing list.

-Conrad

On Fri, Jul 3, 2009 at 3:37 PM, Dave DeLong <[email protected]> wrote:

> Hi Chunk,
>
> You're missing the third parameter of the selector (the context parameter).
>  Also, I believe that OS 2.2 didn't send parameters along in the animation
> selectors.  The selector you're providing (animationHasFinished:finished:)
> will need at least two (the docs for 3.0 say you need 3), but IIRC, OS 2.2
> needs the selector to be more like: @selector(animationDidStop).
>
> HTH,
>
> Dave
>
>
> On Jul 2, 2009, at 10:25 PM, Chunk 1978 wrote:
>
>  this works fine in OS 3, but it doesn't call fade out in OS2.2?  what
>> is the problem?
>>
>> - (void)animationHasFinished:(NSString *)animationID
>> finished:(BOOL)finished
>>        {
>>        if ((animationID == @"FadeIn") && finished)
>>                {
>>                [self fadeOut];
>>                }
>>        }
>>
>> - (void)fadeIn
>>        {
>>        [UIView beginAnimations:@"FadeIn" context:NULL];
>>        [UIView setAnimationDelegate:self];
>>        [UIView setAnimationDidStopSelector:@selector
>> (animationHasFinished:finished:)];
>>        [UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
>>        [UIView setAnimationDuration:0.05];
>>        [self.flashView setAlpha:1.0];
>>        [UIView commitAnimations];
>>        }
>>
>> - (void)fadeOut
>>        {
>>        [UIView beginAnimations:@"FadeOut" context:NULL];
>>        [UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
>>        [UIView setAnimationDuration:0.45];
>>        [self.flashView setAlpha:0.0];
>>        [UIView commitAnimations];
>>        }
>> _______________________________________________
>>
>> Cocoa-dev mailing list ([email protected])
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/cocoa-dev/davedelong%40me.com
>>
>> This email sent to [email protected]
>>
>
> _______________________________________________
>
> Cocoa-dev mailing list ([email protected])
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/conradwt%40gmail.com
>
> This email sent to [email protected]
>
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to