Skip navigation.
 
mlRe: CALayer doesn't resize immediately
FROM : Scott Anguish
DATE : Thu Nov 08 23:11:01 2007

On Nov 8, 2007, at 6:42 AM, Bertrand Landry-Hetu wrote:

>> The other way I found is to disable the default animation for that 
>> property:
>>
>> NSDictionary * disabledAnimation = [NSDictionary
>> dictionaryWithObjectsAndKeys: [NSNull null], @"bounds", [NSNull 
>> null],
>> @"position", nil];
>>
>> myLayer.actions = disabledAnimation;

>



You can also just disable the actions for that transaction

http://developer.apple.com/documentation/Cocoa/Conceptual/CoreAnimation_guide/Articles/Transactions.html#/
/apple_ref/doc/uid/TP40006096-DontLinkElementID_56

[CATransaction begin];
[CATransaction setValue:(id)kCFBooleanTrue 
forKey:kCATransactionDisableActions];
[aLayer removeFromSuperlayer];
[CATransaction commit];


(that maybe should be under implicit animations rather than explicit.. 
I'll ave to think about that)

Related mailsAuthorDate
mlCALayer doesn't resize immediately Axel Péju Nov 7, 10:58
mlRe: CALayer doesn't resize immediately Thomas Schlömer Nov 7, 11:08
mlRe: CALayer doesn't resize immediately Axel Péju Nov 7, 21:52
mlRe: CALayer doesn't resize immediately Bertrand Landry-He… Nov 8, 12:42
mlRe: CALayer doesn't resize immediately Scott Anguish Nov 8, 23:11
mlRe: CALayer doesn't resize immediately Scott Anguish Nov 8, 23:11
mlRe: CALayer doesn't resize immediately Bertrand Landry-He… Nov 11, 09:17