iOS iPhone is it possible to clone UIView and have it draw itself to two UIViews?

后端 未结 4 1399
梦如初夏
梦如初夏 2020-12-15 08:05

I\'m thinking of a way to have a UIView render itself onto another UIView as well as the first one. So I have my main UIView with it\'s bounds, and the UIView also renders i

4条回答
  •  不知归路
    2020-12-15 08:42

    Create another instance of the UIView you wish to "clone" and add it as a subview to another view. You don't really clone a UIView object, you simply create another instance of it.

提交回复
热议问题