(void)viewDidLoad {
[super viewDidLoad];
picker1Data=@[@1,@2,@3,@4,@5];
picker2Data=@[@"a",@"b",@"c",@"d",@"e",@"f"];
self.picker1.dataSource=self;
self.picker1.delegate=self;
self.picker2.dataSource=self;
self.picker2.delegate=self;
我是通过将单个视图控制器指定为多个选择器的数据源和委托而做错了吗?
答案 0 :(得分:0)
不能在单个ViewContoller中分配多个UIPickerView