단추를 사용하려고하면 테이블 뷰에서 선택된 클래스를 특수 클래스로 선택합니다. 이것은 NSLog에서 선택한 인덱스의 결과를 얻는 방법입니다.선택한 경로를 인식하는 단추
- (void)selector:(IZValueSelectorView *)valueSelector didSelectRowAtIndex:(NSInteger)index {
NSLog(@"Selected index %d",index);
}
하지만 버튼이 IBAction를 사용하기 때문에 나는 버튼 사항을 확인 할 방법을 모르겠어요.
버튼을 클릭하면 경고 팝업이 표시됩니다. 내가 제대로 질문을 이해하면
- (IBAction)submit:(id)sender {
UIAlertView *submit = [[UIAlertView alloc]
initWithTitle:@"Submit"
message:(@"Are you sure you want to submit %i", index)
delegate:self
cancelButtonTitle:@"No"
otherButtonTitles:nil];
[submit show];
}