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

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -