it's driving me crazy! working on drawing application. let's working on uiview
called sheet.
i adding sublayers view ([sheet.layer addsublayer:...]
) , want draw them. creating cgimageref
, putting layer's contents
. it's animated , don't want that.
i tried everything:
removeanimationforkey:
removeallanimations
- set actions dictionary
- using actionlayer
delegate
[catransaction setdisableanimations:yes]
it's seems correct. don't understand why layer still animated ;_;
doing wrong? there secret way?
you have explicitly disable animations wrapping code in catransaction
[catransaction begin]; [catransaction setvalue:(id)kcfbooleantrue forkey:kcatransactiondisableactions]; layer.content = someimageref; [catransaction commit];
Comments
Post a Comment