The Code has several attributes that are not frequently used:
@ Property (nonatomic, getter = isContinuous) BOOL continuous; // if set, value change events are generated any time the value changes due to dragging. default = YES
This is an attribute in UISlider. It is used to send the sliderValueChanged method when you drag the track button, if it is set to no, it will not be sent when it is dragged.
If you want to send the sliderValueChanged method, use [self sendActionsForControlEvents: UIControlEventValueChanged];
@ Property (nonatomic) BOOL clipsToBounds;
// When YES, content and subviews are clipped to the bounds of the view. Default is NO.
This is an attribute in UIView. If the view exceeds the limit of the parent view, you can use this attribute to show the blocked part. If it is set to yes, the default value is no.
@ Property (nonatomic, getter = isUserInteractionEnabled) BOOL userInteractionEnabled;
// Default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
This is an attribute in the UIView. For example, if there is a UIButton button in the window, and I add another UIView on it to cover the uibutton, The UIButton button will not receive a response, to make this button respond, set this attribute to no. The default value is yes.