iphone - Extend PickerViews Component while touching -


I have a UIPickerView with a variable number of components to display. In my contoller I have this - Wicker View: withForComponent:

  - (CGFloat) pickerView: (UIPickerView *) PV Width FourConant: (NSInteger) Component {CGFloat f; If (factor == 0) {f = 30; } Else {if ([componentsData count]> 2) {f = 260.0 / ([componentsData count] -1); } And {F = 260.0; }} Return; }  

If I call [pickerView reloadAllComponents] then it works fine, but how can I increase the width of the components if it is touched Is (and definitely all the other shrinking)?

To do this, even if your picker option is all text, you

  pickerView: viewForRow: forComponent: reusingView:  

You will basically need to generate an array of UIViews for your picker options, and place them in an array. After that, when a line is selected, then extend that UIViv directly, and through that operator again, make the contract according to the second.


Comments