How to properly scale UI for ios

I have developed an app for ios and everything works except UI positioning for different types of apple devices. Using the DPI scale properly scales up the elements such as text boxes and buttons. However, they will overlap each other or be positioned off center. I believe that I set up my anchors right and I’m not sure how to go about this.