IOS Uistepper (step Control) Usage Summary

Source: Internet
Author: User

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

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.