ios - UIPickerView is getting disappear on updating label in didSelectRow method in iOS8? -
I'm facing a problem in UIPickerView iOS 8. When I select the value in the UILBL from the selector and update the price then my pickup is missing. The DidSelectRow method is working fine in iOS 7.
// Add Picker to VisualWeather
locationPickerView = [[UIPickerView alloc] initWithFrame: CGRectMake (0,0, locationView.frame. Size.width, 90)]; LocationPickerView.backgroundColor = [UIColor clear collar]; LocationPickerView.dataSource = self; LocationPickerView.delegate = self; ActivityIndicatorView.center = locationPickerView.center; [LocationView addSubview: locationPickerView];
Here the location view is UIView which has been added to xib.
- (minus) pickerView: (UIPickerView *) Select had thePickerView: (NSInteger) Contents in line: (NSInteger) component {cityNameLabel.text = [cityNameArray Objektatindaks: line]; ThePickerView.hidden = Yes; }
If I note that that line picker does not disappear I but I need to update the label: (
cityNameLabel.text = [cityNameArray objectAtIndex: Line];
You did this by hiding the picture view. can be.
- (minus) pickerView: (UIPickerView *) select had thePickerView: (NSInteger) component align: (NSInteger) component {cityNameLabel.text = [cityNameArray objectAtIndex: line]; // thePickerView.hidden = yes;}
comment PickerView.hidden = yes; and Anchen.
Comments
Post a Comment