how to add a UITextField to a CALayer and make it work
问题 I searched on google and I found this. but I'm not sure the answer is true. So what I need is to add UITextField into a CALayer and make it work I used this method but its not working [layer addSubLayer:textField.layer]; Any ideas to solve this problem? 回答1: The short answer is, you can't. Layers are lower-level objects. Views have layers, but layers can't have views. If you were to add another view's layer as a sublayer of your current view's layer, the view level would have no knowledge