Masonry simple use of Create button

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.