iphone - in which situations does it make sense to create only an lighteight CALayer rather than a fat UIView? -


The only thing that comes to my mind is displaying simple images. But if you want to animate them, will not it be right? So is it useful to create a single cylair instead of a UIView, which comes with all those things (all trees ...)

When you are not availing the benefits of using UIView and when you are not able to do this, then you use CALayer.

After this line, if your requirement is not using any UI controls and / or you want to create your own custom animation (2D or 2.5D animation) then this core Animation makes sense to drop at the level and create your own CALAYER Your point is there.

If you are only interested in original animation performance and it can be done through UIView, then the API is usually simple, so it means to use UIView to save your time Will happen. / P>


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -