iphone - How to prevent CALayer from implicit animations? -
when set backgroundcolor property of calayer instance, change seems animated. don't want in case. how can set backgroundcolor without animation?
you can wrap change in catransaction disabled animations:
[catransaction begin]; [catransaction setvalue:(id)kcfbooleantrue forkey:kcatransactiondisableactions]; //change background colour [catransaction commit];
Comments
Post a Comment