What's the difference for using CALayer and UIView when developing iPhone games?

For iPhone game development, it looks like there are very similar features using CALayer and UIView, we can implement our spirit using CALayer or UIView and animations are good for those as well. But for coding, there are many differences between CALayer and UIView such as object methods and properties, etc. So what's the best choice?

0


source to share


1 answer


Each one UIView

supports a layer, so you can get a layer reference for any kind. If you need to have the characteristics of a UIResponder (such as responding to events), you should probably use UIView.



+3


source







All Articles