[MonoTouch] Not sure if MT Bug. Would appreciate MT guys taking a quick look

dermotos me at dermotos.com
Tue Mar 6 07:42:08 UTC 2012


I'm having serious problems trying to do a basic animation using
CoreAnimation
I think i've narrowed it down to the requirement of overriding
initWithLayer: on a CALayer when animating custom properties.

The problem seems to be that initWithLayer is bound to a default
contstructor and therefore cannot be overridden.

I've tried overriding the default constructor like so:

		public CircleLayer(CALayer other): base(other)
		{
			Console.WriteLine("Testing");
		}

and even tried exporting it:
                
                [Export ("initWithLayer:")]
		public CircleLayer(CALayer other): base(other)
		{
			Console.WriteLine("Testing");
		}

but it still isn't getting called. Of course my other code might be wrong
somewhere, but its hard to figure out as there is no documentation and no
help from google. The only questions out there are ones that haven't been
answered.

The stackoverflow posts related to this are:

http://stackoverflow.com/questions/9579532/calayer-initwithlayer-bound-to-default-constructor-by-mistake-can-i-override-t

and


http://stackoverflow.com/questions/9544591/animate-a-custom-property-using-coreanimation-in-monotouch
with sample project: http://dl.dropbox.com/u/8617393/GraphicsTest1.zip

Would really appreciate any help, i've been stuck on this since last friday.


--
View this message in context: http://monotouch.2284126.n4.nabble.com/Not-sure-if-MT-Bug-Would-appreciate-MT-guys-taking-a-quick-look-tp4448960p4448960.html
Sent from the MonoTouch mailing list archive at Nabble.com.


More information about the MonoTouch mailing list