• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Change in animation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change in animation?


  • Subject: Re: Change in animation?
  • From: David Rowland <email@hidden>
  • Date: Sat, 30 Jul 2011 09:22:45 -0700

Yikes, so I did, and I had forgotten. Must be Codeheimer's disease.

That is the right answer. The routine is now,

- (void)fadeView:(UIView *)theView {
  theView.alpha = 1.0;
  infoButton.hidden = FALSE;
  [UIView animateWithDuration:2.5
                        delay:0
                      options:UIViewAnimationOptionAllowUserInteraction
                   animations:^{theView.alpha = 0.0;}
                   completion:^(BOOL finished){infoButton.hidden = TRUE;}
   ];
}


and it does what I want.

Side question -- animateWithDuration:::::

is a class method. How does it know which view to act on?


David




On Jul 29, 2011, at 9:58 PM, Roland King wrote:

> You asked something similar back in March
>
> http://www.cocoabuilder.com/archive/cocoa/300383-iphone-animation-puzzle.html
>
> I think the answer is still UIViewAnimationOptionAllowUserInteraction. Don't know why changing to Lion would have made a difference however as I think that option has been off by default in all versions of iOS 4.x, so it should never have worked.
>
> On Jul 30, 2011, at 12:44 PM, David Rowland wrote:
>
>> I have a routine that presents and then fades a label and a button,
>>
>> - (void)fadeView:(UIView *)theView {
>> theView.alpha = 1.0;
>> infoButton.hidden = FALSE;
>> [UIView animateWithDuration:2.5
>>                  animations:^{theView.alpha = 0.0;}
>>                  completion:^(BOOL finished){infoButton.hidden = TRUE;}
>>  ];
>> }
>>
>>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >Change in animation? (From: David Rowland <email@hidden>)
 >Re: Change in animation? (From: Roland King <email@hidden>)

  • Prev by Date: Re: Running Cocoa from a dynamic library
  • Next by Date: Re: NSNumberFormatter documentation error?
  • Previous by thread: Re: Change in animation?
  • Next by thread: Re: Change in animation?
  • Index(es):
    • Date
    • Thread