[问题] UIStepper小问题请教

楼主: handheart923 (handheart923)   2015-06-10 23:16:44
想请问前辈我宣告了一个var全域变量,
static float var = 100;
并想使用UIStepper被点击时修改这个数字,
这段程式码要怎么修改呢,
新手上路还请多多指教 谢谢
- (IBAction)stepperToControlTempo:(UIStepper *)sender
{
NSLog(@"stepper pressed");
_tempoLabel.text =[NSString stringWithFormat:@"%.0f", sender.value];
}

Links booklink

Contact Us: admin [ a t ] ucptt.com