I am having a weird issue,
here is what i am doing
self.maxPricePicker = [[DownPicker alloc] initWithTextField:self.maxPrice withData:self.mainPricesArray];
[self.maxPricePicker setPlaceholder:@"Max. Price"];
self.minPricePicker = [[DownPicker alloc] initWithTextField:self.minPrice withData:self.mainPricesArray];
[self.minPricePicker setPlaceholder:@"Min. Price"];
self.sizePicker = [[DownPicker alloc] initWithTextField:self.sizeUnit withData:@[@"Sq. Feet", @"Marla", @"Kanal"]];
[self.sizePicker setPlaceholder:@"Select Size Unit"];
However it seems to me that only MinPrice picker works. When i click on it, suddenly all the picker values change to initial value? Also when i try to pick through other pickers i get a crash at
- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
{
self->textField.text = [dataArray objectAtIndex:row];
if([self.delegate respondsToSelector:@selector(pickerView:didSelectIndex:)])
[self.delegate pickerView:pickerView didSelectIndex:row];
}
at self->textField.text = [dataArray objectAtIndex:row];
textField and pickerView are nil. Not sure why the MinPrice picker is working and others not? and why their value change first time when i click on minPrice
I am having a weird issue,
here is what i am doing
However it seems to me that only MinPrice picker works. When i click on it, suddenly all the picker values change to initial value? Also when i try to pick through other pickers i get a crash at
textField and pickerView are nil. Not sure why the MinPrice picker is working and others not? and why their value change first time when i click on minPrice