Is there a way to add some subviews to a view and then be able to position that view so all the subviews will “follow”. Acting as a container so to speak for the subviews so I only need to reposition the view and not having to reposition all the subviews in that view.
I’m looking for a solution to do this programtically, not in IB.
If you use a
UIViewas a parent view all subviews will follow.Now when you set the new frame of the parentView. The btn1 will have it’s position relative to the parentView.
I Hope I understood your question correctly.
EDIT:
Added comments