Bug 6725 - CALayer.AddAnimation (CAAnimation, string key)
Summary: CALayer.AddAnimation (CAAnimation, string key)
Status: RESOLVED INVALID
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 5.99.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-08-28 15:31 UTC by Miguel de Icaza [MSFT]
Modified: 2012-09-13 08:23 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Miguel de Icaza [MSFT] 2012-08-28 15:31:52 UTC
The key is supposed to be unique, which means that we should make the parameter an NSString
Comment 1 Rolf Bjarne Kvinge [MSFT] 2012-09-13 08:23:24 UTC
I tested this, and CALayer is using string comparison, not pointer comparison.

In particular this works:

layer.AddAnimation (anim1, "foo");
var anim2 = layer.AnimationForKey ("foo");
// now anim2 == anim1.

Unit test added: 80d04f77bee65c0b7860d8f552c25595657fc1ae.