UI control and iosui Control

Source: Internet
Author: User

UI control and iosui Control


In iOSAPP, buttons, text labels, text input boxes that can be displayed on the screen are all UI controls.

UIview:

Apple extracts the common attributes of all UI controls into UIView, that is, all UI controls are subclasses of UIView (not necessarily directly subclasses ).

Note: UIView inherits from UIresponder and can respond to user operations.

  • Important Properties of UIView
  • Common Methods of UIView: UIView can be used to display content or as a container for other UI controls (including other UI controls)
Note:
  • UIButton has different States, each of which has corresponding images and texts. You can make a good design by taking advantage of this feature;
  • When a control has other sub-controls, it is best not to modify the transparency (alpha) attribute of the control, otherwise the transparency of the sub-controls in it will also affect. You can add the transparency (alpha) when setting the backgroundcolor of this View ).SetBackgroundColor: [UIColor colorWithRed: green: blue: alpha
  • TableView Row Height: When you create a tableviewcell setting Row Height in xib or storyboard:

 

Related Article

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.