• 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: iPhone animation puzzle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iPhone animation puzzle


  • Subject: Re: iPhone animation puzzle
  • From: WT <email@hidden>
  • Date: Sun, 20 Mar 2011 14:25:33 -0300

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, at 1:59 PM, David Rowland wrote:

> 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, 2011, at 5:08 PM, Roland King wrote:
>
>> UIViewAnimationOptionAllowUserInteraction ?
>>
>>
>>
>> On Mar 20, 2011, at 5:42, David Rowland <email@hidden> 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 commitAnimations];
>>>
>>>
>>> and so does this,
>>>
>>> label.alpha = 1.0;
>>> [UIView animateWithDuration:2.5 animations:^{label.alpha = 0.0;} ];
>>>
>>>
>>> The documentation says the latter is now preferred and does the same thing as the former. In particular, both will
>>> start a separate thread for the animation.
>>>
>>> My problem is that the second method seems to block the main thread. While it is acting I cannot use any of the controls on the screen. The first method lets me do what I wish as it proceeds.
>>>
>>>
>>> Anyone have advice?
>>>
>>> thanks,
>>>
>>> David
_______________________________________________

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

  • Follow-Ups:
    • Re: iPhone animation puzzle
      • From: Jeff Kelley <email@hidden>
References: 
 >iPhone animation puzzle (From: David Rowland <email@hidden>)
 >Re: iPhone animation puzzle (From: Roland King <email@hidden>)
 >Re: iPhone animation puzzle (From: David Rowland <email@hidden>)

  • Prev by Date: Re: Is a file open in another application?
  • Next by Date: Re: iPhone animation puzzle
  • Previous by thread: Re: iPhone animation puzzle
  • Next by thread: Re: iPhone animation puzzle
  • Index(es):
    • Date
    • Thread