Simple use of stepping controls in iOS
Initializing the control
Uistepper * step = [[Uistepper alloc]initwithframe:cgrectmake (100, 100, 100, 100)];
Sets whether the controller value continuously triggers a change
@property (nonatomic,getter=iscontinuous) BOOL Continuous;
If set to Yes, the long press will trigger the change continuously, and if set to No, it will not be triggered until the hit is finished.
Set long press to always trigger changes
@property(nonatomic) BOOL autorepeat;
If set to Yes, the long-press value will always change, and if set to No, one click will only change the value once
Sets whether the value of the controller loops (after reaching the boundary, start again, default is NO)
@property (nonatomic) BOOL wraps;
Set the value of the controller
@property (nonatomic) Double value;
Set the maximum and minimum values for the controller
@property (nonatomic) Double minimumvalue;//defaults to 0
@property (nonatomic) double maximumvalue; Default is 100
Set the step size of the controller
@ Property (nonatomic) double stepvalue;
Set the controller style color
@property (Nonatomic,retain) Uicolor *tintcolor;
Set the controller background picture
-(void) SetBackgroundImage: (uiimage*) Image forstate: (uicontrolstate) state;
Get background picture
-(UIImage*) backgroundimageforstate: (uicontrolstate) state;
Set up a picture of the split line with the left and right button states
-(void) Setdividerimage: (UIImage*) image forleftsegmentstate: (uicontrolstate) leftstate Rightsegmentstate: (uicontrolstate) rightstate;
Get Split Line picture
-(UIImage*) dividerimageforleftsegmentstate: (uicontrolstate) State rightsegmentstate: ( Uicontrolstate) state;
Set and get picture of the plus button
-(void) Setincrementimage: (UIImage *) image forstate: (uicontrolstate) state;
-(UIImage *) Incrementimageforstate: (uicontrolstate) state;
Set and get picture of minus button
-(void) Setdecrementimage: (UIImage *) image forstate: (uicontrolstate) state;
-(UIImage *) Decrementimageforstate: (uicontrolstate) state;
Learn to use welcome reprint
IOS Uistepper (step Control) Usage Summary