0
스테퍼에 프로그래밍 방식으로 추가 된 액션을 추가하고 싶지만 스테퍼를 클릭하는 방법을 모르겠습니다. 값을 변경하는 NSMutableArray가 있지만 어떤 스테퍼를 클릭했는지 알고 싶습니다. 내 코드는 다음과 같습니다.id stepper를 프로그래밍 방식으로 추가
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
for (int i = 0; i < count; i++) {
//Here I create the stepper
UIStepper *steperCode = [[UIStepper alloc] initWithFrame:CGRectMake(40, (i*30)+120, 300, 200)];
steperCode.maximumValue = 1000;
steperCode.minimumValue = 0;
steperCode.stepValue=1.0;
[self.view addSubview:steperCode];
}
고마워요.
당신은 최고예요이보십시오! 고마워요 – asensionacher
행복 iCoding;) – raki