我有一个UIPickerView
带有 3 个组件的组件,其中填充了 2NSMutableArrays
个组件(2 个组件具有相同的数组)。
一个教程说:
//PickerViewController.m
- (void)pickerView:(UIPickerView *)thePickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component {
NSLog(@"Selected Color: %@. Index of selected color: %i", [arrayColors objectAtIndex:row], row);
}
但我想UIAlertView
在用户触摸 UIButton 后显示每个组件的选定行。
有没有办法做到这一点?还是我必须只使用 3 invisibleUILabels
作为缓冲区?
提前致谢。