What happens when an UIView is added to another view twice in iOS? I believe it wont get added twice. Have anyone ever tried?
[UIView addSubview:]
documentation
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.
A view can only have one parent view. But a view can have many subviews.
Read the Documentation of UIView.
Specifically read about addSubView
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With