我正在将一个UIPickerView添加到一个没有在其接口中添加UIPickerViewDelegate或UIPickerViewDataSource协议的视图。但是,UIPickerView对象所需的所有方法都已正确实现,程序在以下委托下运行良好:pv.dataSource = self; Assigning to 'id<UIPickerViewDataSource>' from incompatibl
viewDidLoad { CGRect pickerFrame = CGRectMake(0,280,321,200);
UIPickerView*myPickerView = [[UIPickerView alloc] init]; //Not sure if this is the proper allocation/initialization