• 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: UIView block-based methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UIView block-based methods


  • Subject: Re: UIView block-based methods
  • From: Carl Hoefs via Cocoa-dev <email@hidden>
  • Date: Mon, 11 Nov 2019 15:15:38 -0700

On Nov 11, 2019, at 9:46 AM, David Duncan <email@hidden> wrote:
>
>> On Nov 9, 2019, at 12:09 PM, Carl Hoefs via Cocoa-dev
>> <email@hidden> wrote:
>>
>> I'm trying to keep some older iOS code going, but I'm getting a deprecation
>> warning on many UIView class methods:
>>
>> +beginAnimations:context:
>> +setAnimationBeginsFromCurrentState:
>> +setAnimationDuration:
>> +commitAnimations
>> etc.
>>
>> Xcode 11.2.1 says: "'beginAnimations:context:' is deprecated: first
>> deprecated in iOS 13.0 - Use the block-based animation API instead"
>>
>> What is this 'block-based animation API’?
>
> +[UIView animateWithDuration:animations:] and the like.

That works perfectly!
Thanx!
-Carl

_______________________________________________

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: 
 >UIView block-based methods (From: Carl Hoefs via Cocoa-dev <email@hidden>)
 >Re: UIView block-based methods (From: David Duncan via Cocoa-dev <email@hidden>)

  • Prev by Date: Thoughts on Objective-C++
  • Next by Date: Re: Thoughts on Objective-C++
  • Previous by thread: Re: UIView block-based methods
  • Next by thread: Preventing app from being restored or saving info in "Saved Application State"
  • Index(es):
    • Date
    • Thread