<p>I'm trying to drag a <code>CALayer</code> in an iOS app.</p>

<p>As soon as I change its position property it tries to animate to the new position and flickers all over the place:</p>

<pre><code> layer.position = CGPointMake(x, y)
</code></pre>

<p>How can I move <code>CALayers</code> instantly? I can't seem to get my head around the Core Animation API.</p>

You want to wrap your call in the following:
```
```
[CATransaction begin]; 
[CATransaction setValue: (id) kCFBooleanTrue forKey: kCATransactionDisableActions];
layer.position = CGPointMake(x, y);
[CATransaction commit];
```
```