前端之家收集整理的这篇文章主要介绍了
在IOS中将UIView添加到另一个UIView两次会发生什么?,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在iOS中将UIView
添加到另一个视图两次会发生什么?我相信它不会被
添加两次.有人试过吗?
[UIView addSubview:]文档
Views can have only one superview. If view already has a superview and that view is not the receiver,this method removes the prevIoUs superview before making the receiver its new superview.
原文链接:https://www.f2er.com/iOS/332194.html