Re: iPhone animation puzzle

2011-03-23 Thread Matt Neuburg
Nothing was "reversed", unfortunately. Block-based animation was introduced in iOS 4.0, and user interaction has always been off by default during one, so if you wanted user interaction you always had to use UIViewAnimationOptionAllowUserInteraction - and you still do. Apple did seem to regret

Re: iPhone animation puzzle

2011-03-20 Thread Jeff Kelley
If I recall correctly, in iOS 4.0, this was reversed, but the next update changed the behavior to what we have now. On Mar 20, 2011, at 1:25 PM, WT wrote: > I seem to recall that one of the WWDC 2010 instructional videos - available > for free from Apple's developer site - mentions that the blo

Re: iPhone animation puzzle

2011-03-20 Thread WT
I seem to recall that one of the WWDC 2010 instructional videos - available for free from Apple's developer site - mentions that the block version has UIViewAnimationOptionAllowUserInteraction off by default. That being said, have you filed a document enhancement request? WT On Mar 20, 2011, a

Re: iPhone animation puzzle

2011-03-20 Thread David Rowland
That did it. The "View Programmming Guide for iOS", discusses both methods and implies that their code samples are equivalent. They don't say, or I didn't see, that the option you mention is on by default for the begin/commit style and off for the newer block style. thanks, David On Mar 19

Re: iPhone animation puzzle

2011-03-19 Thread Roland King
UIViewAnimationOptionAllowUserInteraction ? On Mar 20, 2011, at 5:42, David Rowland wrote: > This works. It fades the label to invisibility. > > label.alpha = 1.0; > [UIView beginAnimations:nil context:nil]; > [UIView setAnimationDuration:2.5]; > label.alpha = 0; > [UIView commitAnimatio

iPhone animation puzzle

2011-03-19 Thread David Rowland
This works. It fades the label to invisibility. label.alpha = 1.0; [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:2.5]; label.alpha = 0; [UIView commitAnimations]; and so does this, label.alpha = 1.0; [UIView animateWithDuration:2.5 animations:^{label.alpha