IOS adds VIEW from another class to the current VIEWCONTROLLER through buttons.

there is only one button at the bottom of the STORYBOARD, which is done in viewcontroller. I want to create another class now. There is a view, view in the class and there are multiple label. in it.
I want to implement: in the run, if you click this button, you can add the view of another class to the existing interface, location is (20100), and click the button to make the view disappear.

Jun.23,2021

add child view: addSubView

corresponding removal method: fromsuperview?language=objc" rel=" nofollow noreferrer "> removeFromSuperview

Menu