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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -