ios - UIPickerView with two components crashes when scrolling both -


i have uipicker view 2 components. title rows of each component in relationship, is, texts , number of rows in 2nd component change according selected row in 1st component.

now, problem is, when scroll 2 components together, app crashes.

i guess reason when 1st component being scrolled, supposed number of rows in 2nd component keeps changing, meantime, uipickerview asking title , number 2nd component, crashes.

but haven't found method can used judge whether component being scrolled. can't find correct time reject request of pickerview's delegate , datasource 2nd component.

what supposed do?

im running same issue , i'm thinking conjunction of 2 options 1 string placed array uipicker. there 1 component. maybe should same?
another solution might helpful i'd found here
basic idea 2 depended components picker having 2 arrays: 1st left component , 2nd right. each time user makes choice on left component array right side repopulates according left side choice.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -