Code creation controller, the control in the actual development is very practical, convenient and fast, and masonry third-party framework is to increase the efficiency of code creation a lot!
How is code created? How do I use a third-party framework?
1, first delete the system comes with SB, see
2. Creating a controller in the APPDELEGATE.M method
3. Implementation of the above 1 and 2 simple code creation work on the basic implementation!!
4. Importing a third-party framework into the class method of the controller that you create is a simple use
5. Talk haha
6. Introduction to several properties of the third-party framework:
Take the button control above as an example
Leading the left side of the button control itself
Trailing the right side of the button control itself
Upper of top button control itself
Bottom the lower part of the button control itself
CenterX vertical alignment of the y-axis relative to the control (x, y coordinates)
CenterY vertical alignment of the x-axis relative to the control (x, y coordinates)
For example, if you want to have the button 25 positions to the left of a control, the center alignment
The code is as follows
Simulator Run effect
Masonry simple use of Create button