![]() When you place a view on the canvas, Interface Builder automatically creates a set of prototyping constraints that define the view’s current size and position relative to the upper left corner. Most developers find that they prefer one approach over the others however, being familiar with all three approaches lets you quickly switch between tools based on the task at hand.įor all three options, start by dragging your views and controls from the Object library onto the scene. Each of these approaches has its own set of strengths and weaknesses. ![]() There are three main options for setting up Auto Layout constraints in Interface Builder: You can control-drag between views, you can use the Pin and Align tools, and you can let Interface Builder set up the constraints for you and then edit or modify the results. ![]() Working with Constraints in Interface Builder
0 Comments
Leave a Reply. |