i am working on a project in which i have to perform following two work:
1.) Fetch value from CoreData and store it in an NSMutableArray.
2.) Take a UIPickerView and fill it with an Array value.
Problem is that size of array is dynamic and i canto fill an array value in UIPickerView. can someone help me.
in order for the UIPickerView to work correctly, you must supply the amount of components (columns) and the number of rows for each component whenever it reloads:
as mentioned, use
[myPickerView reloadAllComponents];to reload the view once the array is populated, but you MUST implement also these things after you declare the containing view controller class as<UIPickerViewDelegate>link the picker to the file owner as a delegate, and then: