// Created By 郭仔
UIStepper 加减法器:
<pre name="code" class="objc"> UILabel * leb = [[UILabel alloc]initWithFrame:CGRectMake(100, 200, 100, 100)];
leb.backgroundColor = [UIColor redColor];
self.label = leb;
[self.window addSubview:leb];
// ==========
UIStepper * stepper = [[UIStepper alloc]init];
// [stepper setCenter:self.window.center];
stepper.frame = CGRectMake(100, 100, 200, 200);
stepper.tintColor = [UIColor blueColor];
stepper.value = 10;
[stepper setMaximumValue:15.0];
[stepper setMinimumValue:0.0];
//[stepper setValue:5.5];
[stepper setStepValue:1];
// 是否循环
[stepper setWraps:YES];
// 设定stepper可以按住不放连续更改数值
[stepper setContinuous:YES];
[stepper addTarget:self action:@selector(steepValueschanged:) forControlEvents:UIControlEventValueChanged];
[self.window addSubview:stepper];
事件紧迫,不写具体的了,API自己搞~~~~