2012-03-09 4 views

답변

3

절대적으로 가능합니다.

당신은이 시나리오 상상할 수

:

UIStepper *stepperOne = [[UIStepper alloc] initWithFrame:frame]; 
[stepperOne addTarget:self action:@selector(stepperOneChanged:) forControlEvents:UIControlEventValueChanged]; 

- (void)stepperOneChanged:(UIStepper*)stepperOne{ 
    //This method would be called on the target of your first stepper on UIControlEventsValueChanged 

    //Decrease the value by 1 
    stepperTwo.value --; 

    //OR 
    //Increase the value by 1 
    stepperTwo.value ++; 
} 
+0

내가 stepperTwo.value = 10을 말할 수 있습니다; 예를 들어, 내 테스트가 NULL로 돌아 왔을 때. workOutLength = classLength - (warmUpLength + coolDownLength); stepperWorkOutLength.value = workOutLength; (도대체 어떻게 답장에 코드를 추가 할까? 내가 입력 한 값을 입력 할 때마다 게시물이 업데이트됩니다 : ( –

+0

) 두 가지 사이에 넣을 수 있습니다 :'NULL을 돌려주는 것은 무엇입니까? 그리고 네, 값을 nay 사이의 값으로 설정할 수 있습니다. 최소값과 최대 값 – Zebs

관련 문제