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: