Re: UIView block-based methods

2019-11-11 Thread Carl Hoefs via Cocoa-dev
On Nov 11, 2019, at 9:46 AM, David Duncan  wrote:
> 
>> On Nov 9, 2019, at 12:09 PM, Carl Hoefs via Cocoa-dev 
>>  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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: UIView block-based methods

2019-11-11 Thread David Duncan via Cocoa-dev


> On Nov 9, 2019, at 12:09 PM, Carl Hoefs via Cocoa-dev 
>  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. 

> -Carl
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com
> 
> This email sent to david.dun...@apple.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: UIView block-based methods

2019-11-09 Thread Marco S Hyman via Cocoa-dev

> What is this 'block-based animation API’?\


The section of the doc named Animating Views starts with: Use of these methods 
is discouraged. Use the UIViewPropertyAnimator class to perform animations 
instead.

I’d start looking there.
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


UIView block-based methods

2019-11-09 Thread Carl Hoefs via Cocoa-dev
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'?
-Carl

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com