Inside each of CollectionViewCells i have added UITextField, that need to take input from picker View.
So I'm assigning inputView as pickerView inside my CellForRowAtIndexPath.
When i run the code the input view part is empty. Not having any pickerviews.
I realize the datasource methods are not getting invoked.
percentagePicker is created outlet on my ViewController
This is my cellForRowAtIndexPath method
cell.cropPercent.text = [NSString stringWithFormat:@"%@",cropPercentagesList[indexPath.row];
UIPickerView *pikerView = _percentagePicker;
[_percentagePicker removeFromSuperview];
pikerView.delegate =self;
pikerView.dataSource = self;
cell.cropPercent.textColor = [UIColor redColor];
cell.cropPercent.inputView = pikerView;