iphone - Add CALayer as sublayer and then animate -


What I want to do here: add a collar to the alaster layer and then animate it immediately Has been added to its position outside the current scene and should be taken in view of "fly". It all happens in a UIViewController.

Here my code looks basically:

  mysublayer.position = CGPointMake (-160.0, -250.0); [Self.view.layer addSublayer: mysublayer]; [Start the KatrinaSation]; // External Transactions [CATransaction Set Value: [KNK Number Number Explosions 2.0F] for KKRsActionAnimation Duration]; Mysublayer.position = CP Pointsmake (160.0, 250.0); Mysublayer.opacity = 1.0; [Catransens Cameat];  

What happens is that the novel appears immediately on the new situation (160,250) without any new animation, I think I am making some basic mistake and at this time where I lay I try to animate it really does not get involved in the parent's layer, right?

So, how to make it wrap, how can I create a new Subharer after adding it to the parent layer?

Thank you and kind, goose

You [CABasicAnimation animationWithKeyPath: @ "position" ]


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -