Pregunta

Estoy tratando de animar el movimiento de una vista personalizada de mí usando el siguiente código (mi mejor traducción de Objective-C de los documentos propios de manzanas)

        var animDict = new NSMutableDictionary ();
        animDict [NSViewAnimation.TargetKey] = this.View;
        animDict [NSViewAnimation.StartFrameKey] = NSValue.FromRectangleF (this.View.Frame);
        animDict [NSViewAnimation.EndFrameKey] = NSValue.FromRectangleF (new RectangleF (0, 150 * index, 400, 150));

        var theAnim = new NSViewAnimation ();
        theAnim.SetValuesForKeysWithDictionary (animDict);
        theAnim.Duration = 2;
        theAnim.StartAnimation ();

Sin embargo, recibo el siguiente error de tiempo de ejecución al ejecutar la aplicación: 2011-05-08 00: 53: 30.827 EpisodeNext [61715: 613] [setValue: forunDefinedKey:]: Esta clase no es una codificación de valor clave para la clave NSViewanimationTargetKey .

¿Alguna idea de lo que estoy haciendo mal? ¡Gracias!

No hay solución correcta

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top